| 
 | 
 | |||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.result.ResultUtil
public class ResultUtil
Utilities for handling result objects
| Constructor Summary | |
|---|---|
| ResultUtil() | |
| Method Summary | ||
|---|---|---|
| static
 | findAnnotationResult(List<AnnotationResult<?>> anns,
                     AssociationID<T> assoc)(Try to) find an association of the given ID in the result. | |
| static
 | findAnnotationResult(Result result,
                     AssociationID<T> assoc)(Try to) find an association of the given ID in the result. | |
| static List<AnnotationResult<?>> | getAnnotationResults(Result r)Collect all Annotation results from a Result | |
| static List<Clustering<?>> | getClusteringResults(Result r)Collect all clustering results from a Result | |
| static
 | getGlobalAssociation(Result result,
                     AssociationID<M> meta)Get first Association from a MultiResult. | |
| static List<IterableResult<?>> | getIterableResults(Result r)Return all Iterable results | |
| static List<MetadataResult> | getMetadataResults(Result r)Return all Metadata results | |
| static List<OrderingResult> | getOrderingResults(Result r)Collect all ordering results from a Result | |
| static
 | setGlobalAssociation(MultiResult result,
                     AssociationID<M> meta,
                     M value)Set global meta association. | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ResultUtil()
| Method Detail | 
|---|
public static final <M> void setGlobalAssociation(MultiResult result,
                                                  AssociationID<M> meta,
                                                  M value)
MetadataResult otherwise
 creating a new MetadataResult if none was found.
M - restriction classresult - Result collectionmeta - Associationvalue - Value
public static final <M> M getGlobalAssociation(Result result,
                                               AssociationID<M> meta)
M - restriction classresult - Result collectionmeta - Association
public static final <T> AnnotationResult<T> findAnnotationResult(Result result,
                                                                 AssociationID<T> assoc)
T - Association result typeresult - Result to find associations inassoc - Association
public static final <T> AnnotationResult<T> findAnnotationResult(List<AnnotationResult<?>> anns,
                                                                 AssociationID<T> assoc)
T - Association result typeanns - List of Resultsassoc - Association
public static List<AnnotationResult<?>> getAnnotationResults(Result r)
r - Result
public static List<OrderingResult> getOrderingResults(Result r)
r - Result
public static List<Clustering<?>> getClusteringResults(Result r)
r - Result
public static List<IterableResult<?>> getIterableResults(Result r)
r - Result
public static List<MetadataResult> getMetadataResults(Result r)
r - Result
| 
 | 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||