public class ResultUtil extends Object
Constructor and Description |
---|
ResultUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addChildResult(HierarchicalResult parent,
Result child)
Add a child result.
|
static void |
ensureClusteringResult(Database db,
Result result)
Ensure that the result contains at least one Clustering.
|
static SelectionResult |
ensureSelectionResult(Database db)
Ensure that there also is a selection container object.
|
static <C extends Result> |
filterResults(ResultHierarchy hier,
Class<? super C> restrictionClass)
Return only results of the given restriction class
|
static <C extends Result> |
filterResults(ResultHierarchy hier,
Result r,
Class<? super C> restrictionClass)
Return only results of the given restriction class
|
static Database |
findDatabase(ResultHierarchy hier)
Find the first database result in the tree.
|
static Database |
findDatabase(ResultHierarchy hier,
Result baseResult)
Find the first database result in the tree.
|
static List<Clustering<? extends Model>> |
getClusteringResults(Result r)
Collect all clustering results from a Result
|
static List<CollectionResult<?>> |
getCollectionResults(Result r)
Collect all collection results from a Result
|
static List<IterableResult<?>> |
getIterableResults(Result r)
Return all Iterable results
|
static List<OrderingResult> |
getOrderingResults(Result r)
Collect all ordering results from a Result
|
static List<OutlierResult> |
getOutlierResults(Result r)
Collect all outlier results from a Result
|
static List<Relation<?>> |
getRelations(Result r)
Collect all Annotation results from a Result
|
static SamplingResult |
getSamplingResult(Relation<?> rel)
Get the sampling result attached to a relation
|
static ScalesResult |
getScalesResult(Relation<? extends SpatialComparable> rel)
Get (or create) a scales result for a relation.
|
static List<SettingsResult> |
getSettingsResults(Result r)
Collect all settings results from a Result
|
static void |
removeRecursive(ResultHierarchy hierarchy,
Result child)
Recursively remove a result and its children.
|
public static List<Relation<?>> getRelations(Result r)
r
- Resultpublic static List<OrderingResult> getOrderingResults(Result r)
r
- Resultpublic static List<Clustering<? extends Model>> getClusteringResults(Result r)
r
- Resultpublic static List<CollectionResult<?>> getCollectionResults(Result r)
r
- Resultpublic static List<IterableResult<?>> getIterableResults(Result r)
r
- Resultpublic static List<OutlierResult> getOutlierResults(Result r)
r
- Resultpublic static List<SettingsResult> getSettingsResults(Result r)
r
- Resultpublic static <C extends Result> ArrayList<C> filterResults(ResultHierarchy hier, Result r, Class<? super C> restrictionClass)
C
- Class typehier
- Result hierarchyr
- Starting positionrestrictionClass
- Class restrictionpublic static <C extends Result> ArrayList<C> filterResults(ResultHierarchy hier, Class<? super C> restrictionClass)
C
- Class typehier
- Result hierarchyrestrictionClass
- Class restrictionpublic static void ensureClusteringResult(Database db, Result result)
db
- Database to processresult
- resultpublic static SelectionResult ensureSelectionResult(Database db)
db
- Databasepublic static SamplingResult getSamplingResult(Relation<?> rel)
rel
- Relationpublic static ScalesResult getScalesResult(Relation<? extends SpatialComparable> rel)
rel
- Relationpublic static void addChildResult(HierarchicalResult parent, Result child)
parent
- Parentchild
- Childpublic static Database findDatabase(ResultHierarchy hier, Result baseResult)
baseResult
- Result tree base.public static Database findDatabase(ResultHierarchy hier)
hier
- Result hierarchy.public static void removeRecursive(ResultHierarchy hierarchy, Result child)
hierarchy
- Result hierarchychild
- Result to removeCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.