O
- Data typepublic abstract class AbstractRelation<O> extends AbstractHierarchicalResult implements Relation<O>
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractRelation()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DistanceQuery<O> |
getDistanceQuery(DistanceFunction<? super O> distanceFunction,
java.lang.Object... hints)
Get the distance query for a particular distance function.
|
KNNQuery<O> |
getKNNQuery(DistanceQuery<O> distanceQuery,
java.lang.Object... hints)
Get a KNN query object for the given distance query.
|
protected abstract Logging |
getLogger()
Get the class logger.
|
RangeQuery<O> |
getRangeQuery(DistanceQuery<O> distanceQuery,
java.lang.Object... hints)
Get a range query object for the given distance query.
|
RKNNQuery<O> |
getRKNNQuery(DistanceQuery<O> distanceQuery,
java.lang.Object... hints)
Get a rKNN query object for the given distance query.
|
SimilarityQuery<O> |
getSimilarityQuery(SimilarityFunction<? super O> similarityFunction,
java.lang.Object... hints)
Get the similarity query for a particular similarity function.
|
RangeQuery<O> |
getSimilarityRangeQuery(SimilarityQuery<O> simQuery,
java.lang.Object... hints)
Get a range query object for the given similarity query.
|
addChildResult, getHierarchy, setHierarchy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, get, getDataTypeInformation, getDBIDs, getKNNQuery, getRangeQuery, getRKNNQuery, getSimilarityRangeQuery, iterDBIDs, size
getHierarchy, setHierarchy
getLongName, getShortName
public DistanceQuery<O> getDistanceQuery(DistanceFunction<? super O> distanceFunction, java.lang.Object... hints)
Relation
getDistanceQuery
in interface Relation<O>
distanceFunction
- Distance function to usehints
- Optimizer hints (optional)public SimilarityQuery<O> getSimilarityQuery(SimilarityFunction<? super O> similarityFunction, java.lang.Object... hints)
Relation
getSimilarityQuery
in interface Relation<O>
similarityFunction
- Similarity function to usehints
- Optimizer hints (optional)public KNNQuery<O> getKNNQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
Relation
DatabaseQuery.HINT_BULK
bulk query neededgetKNNQuery
in interface Relation<O>
distanceQuery
- Distance queryhints
- Optimizer hints (optional)public RangeQuery<O> getRangeQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
Relation
DatabaseQuery.HINT_BULK
bulk query neededgetRangeQuery
in interface Relation<O>
distanceQuery
- Distance queryhints
- Optimizer hints (optional)public RangeQuery<O> getSimilarityRangeQuery(SimilarityQuery<O> simQuery, java.lang.Object... hints)
Relation
DatabaseQuery.HINT_BULK
bulk query neededgetSimilarityRangeQuery
in interface Relation<O>
simQuery
- Similarity queryhints
- Optimizer hints (optional)public RKNNQuery<O> getRKNNQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
Relation
DatabaseQuery.HINT_BULK
bulk query neededgetRKNNQuery
in interface Relation<O>
distanceQuery
- Distance queryhints
- Optimizer hints (optional)protected abstract Logging getLogger()
Copyright © 2019 ELKI Development Team. License information.