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 |
---|---|
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,
Object... hints)
Get the distance query for a particular distance function.
|
KNNQuery<O> |
getKNNQuery(DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a KNN query object for the given distance query.
|
KNNQuery<O> |
getKNNQuery(DistanceQuery<O> distanceQuery,
Object... hints)
Get a KNN query object for the given distance query.
|
RangeQuery<O> |
getRangeQuery(DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a range query object for the given distance query.
|
RangeQuery<O> |
getRangeQuery(DistanceQuery<O> distanceQuery,
Object... hints)
Get a range query object for the given distance query.
|
RKNNQuery<O> |
getRKNNQuery(DistanceFunction<? super O> distanceFunction,
Object... hints)
Get a rKNN query object for the given distance query.
|
RKNNQuery<O> |
getRKNNQuery(DistanceQuery<O> distanceQuery,
Object... hints)
Get a rKNN query object for the given distance query.
|
SimilarityQuery<O> |
getSimilarityQuery(SimilarityFunction<? super O> similarityFunction,
Object... hints)
Get the similarity query for a particular similarity function.
|
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()
DistanceQuery<O> getDistanceQuery(DistanceFunction<? super O> distanceFunction, Object... hints)
distanceFunction
- Distance function to usehints
- Optimizer hints (optional)SimilarityQuery<O> getSimilarityQuery(SimilarityFunction<? super O> similarityFunction, Object... hints)
similarityFunction
- Similarity function to usehints
- Optimizer hints (optional)KNNQuery<O> getKNNQuery(DistanceQuery<O> distanceQuery, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededdistanceQuery
- Distance queryhints
- Optimizer hints (optional)KNNQuery<O> getKNNQuery(DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededdistanceFunction
- Distance function to usehints
- Optimizer hints (optional)RangeQuery<O> getRangeQuery(DistanceQuery<O> distanceQuery, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededdistanceQuery
- Distance queryhints
- Optimizer hints (optional)RangeQuery<O> getRangeQuery(DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededdistanceFunction
- Distance function to usehints
- Optimizer hints (optional)RKNNQuery<O> getRKNNQuery(DistanceQuery<O> distanceQuery, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededdistanceQuery
- Distance queryhints
- Optimizer hints (optional)RKNNQuery<O> getRKNNQuery(DistanceFunction<? super O> distanceFunction, Object... hints)
DatabaseQuery.HINT_BULK
bulk
query neededdistanceFunction
- Distance function to usehints
- Optimizer hints (optional)Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.