O
- Object typepublic interface Relation<O> extends DatabaseQuery, HierarchicalResult
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Modifier and Type | Method and Description |
---|---|
default void |
forEach(java.util.function.BiConsumer<? super DBIDRef,? super O> action)
Execute a function for each ID.
|
O |
get(DBIDRef id)
Get the representation of an object.
|
SimpleTypeInformation<O> |
getDataTypeInformation()
Get the data type of this representation
|
DBIDs |
getDBIDs()
Get the IDs the query is defined for.
|
DistanceQuery<O> |
getDistanceQuery(DistanceFunction<? super O> distanceFunction,
java.lang.Object... hints)
Get the distance query for a particular distance function.
|
default KNNQuery<O> |
getKNNQuery(DistanceFunction<? super O> distanceFunction,
java.lang.Object... hints)
Get a KNN query object for the given distance query.
|
KNNQuery<O> |
getKNNQuery(DistanceQuery<O> distanceQuery,
java.lang.Object... hints)
Get a KNN query object for the given distance query.
|
default RangeQuery<O> |
getRangeQuery(DistanceFunction<? super O> distanceFunction,
java.lang.Object... hints)
Get a range query object for the given distance query.
|
RangeQuery<O> |
getRangeQuery(DistanceQuery<O> distanceQuery,
java.lang.Object... hints)
Get a range query object for the given distance query.
|
default RKNNQuery<O> |
getRKNNQuery(DistanceFunction<? super O> distanceFunction,
java.lang.Object... hints)
Get a rKNN 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.
|
default RangeQuery<O> |
getSimilarityRangeQuery(SimilarityFunction<? super O> simFunction,
java.lang.Object... hints)
Get a range query object for the given similarity query.
|
RangeQuery<O> |
getSimilarityRangeQuery(SimilarityQuery<O> simQuery,
java.lang.Object... hints)
Get a range query object for the given similarity query.
|
DBIDIter |
iterDBIDs()
Get an iterator access to the DBIDs.
|
int |
size()
Get the number of DBIDs.
|
getHierarchy, setHierarchy
getLongName, getShortName
O get(DBIDRef id)
id
- Object IDSimpleTypeInformation<O> getDataTypeInformation()
DBIDs getDBIDs()
iterDBIDs()
.DBIDIter iterDBIDs()
for(DBIDIter iter = relation.iterDBIDs(); iter.valid(); iter.advance()) {
relation.get(iter); // Get the current element
}
int size()
default void forEach(java.util.function.BiConsumer<? super DBIDRef,? super O> action)
action
- Action to executeDistanceQuery<O> getDistanceQuery(DistanceFunction<? super O> distanceFunction, java.lang.Object... hints)
distanceFunction
- Distance function to usehints
- Optimizer hints (optional)SimilarityQuery<O> getSimilarityQuery(SimilarityFunction<? super O> similarityFunction, java.lang.Object... hints)
similarityFunction
- Similarity function to usehints
- Optimizer hints (optional)KNNQuery<O> getKNNQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededdistanceQuery
- Distance queryhints
- Optimizer hints (optional)default KNNQuery<O> getKNNQuery(DistanceFunction<? super O> distanceFunction, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededdistanceFunction
- Distance function to usehints
- Optimizer hints (optional)RangeQuery<O> getRangeQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededdistanceQuery
- Distance queryhints
- Optimizer hints (optional)default RangeQuery<O> getRangeQuery(DistanceFunction<? super O> distanceFunction, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededdistanceFunction
- Distance function to usehints
- Optimizer hints (optional)RangeQuery<O> getSimilarityRangeQuery(SimilarityQuery<O> simQuery, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededsimQuery
- Similarity queryhints
- Optimizer hints (optional)default RangeQuery<O> getSimilarityRangeQuery(SimilarityFunction<? super O> simFunction, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededsimFunction
- Similarity function to usehints
- Optimizer hints (optional)RKNNQuery<O> getRKNNQuery(DistanceQuery<O> distanceQuery, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededdistanceQuery
- Distance queryhints
- Optimizer hints (optional)default RKNNQuery<O> getRKNNQuery(DistanceFunction<? super O> distanceFunction, java.lang.Object... hints)
DatabaseQuery.HINT_BULK
bulk query neededdistanceFunction
- Distance function to usehints
- Optimizer hints (optional)Copyright © 2019 ELKI Development Team. License information.