public final class ResultUtil
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
ResultUtil()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addChildResult(HierarchicalResult parent,
Result child)
Add a child result.
|
static <C extends Result> |
filterResults(ResultHierarchy hier,
java.lang.Class<? super C> restrictionClass)
Return only results of the given restriction class
|
static <C extends Result> |
filterResults(ResultHierarchy hier,
Result r,
java.lang.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 java.util.List<CollectionResult<?>> |
getCollectionResults(Result r)
Collect all collection results from a Result
|
static java.util.List<IterableResult<?>> |
getIterableResults(Result r)
Return all Iterable results
|
static java.util.List<OrderingResult> |
getOrderingResults(Result r)
Collect all ordering results from a Result
|
static java.util.List<Relation<?>> |
getRelations(Result r)
Collect all Annotation results from a Result
|
static void |
removeRecursive(ResultHierarchy hierarchy,
Result child)
Recursively remove a result and its children.
|
public static java.util.List<Relation<?>> getRelations(Result r)
r - Resultpublic static java.util.List<OrderingResult> getOrderingResults(Result r)
r - Resultpublic static java.util.List<CollectionResult<?>> getCollectionResults(Result r)
r - Resultpublic static java.util.List<IterableResult<?>> getIterableResults(Result r)
r - Resultpublic static <C extends Result> java.util.ArrayList<C> filterResults(ResultHierarchy hier, Result r, java.lang.Class<? super C> restrictionClass)
C - Class typehier - Result hierarchyr - Starting positionrestrictionClass - Class restrictionpublic static <C extends Result> java.util.ArrayList<C> filterResults(ResultHierarchy hier, java.lang.Class<? super C> restrictionClass)
C - Class typehier - Result hierarchyrestrictionClass - Class restrictionpublic 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 © 2019 ELKI Development Team. License information.