public class PreprocessorRKNNQuery<O,D extends Distance<D>> extends AbstractDataBasedQuery<O> implements RKNNQuery<O,D>
Modifier and Type | Field and Description |
---|---|
private MaterializeKNNAndRKNNPreprocessor<O,D> |
preprocessor
The last preprocessor result
|
private boolean |
warned
Warn only once.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
PreprocessorRKNNQuery(Relation<O> database,
MaterializeKNNAndRKNNPreprocessor.Factory<O,D> preprocessor)
Constructor.
|
PreprocessorRKNNQuery(Relation<O> database,
MaterializeKNNAndRKNNPreprocessor<O,D> preprocessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
D |
getDistanceFactory()
Get the distance data type of the function.
|
AbstractMaterializeKNNPreprocessor<O,D> |
getPreprocessor()
Get the preprocessor instance.
|
List<List<DistanceResultPair<D>>> |
getRKNNForBulkDBIDs(ArrayDBIDs ids,
int k)
Bulk query method for reverse k nearest neighbors for ids.
|
List<DistanceResultPair<D>> |
getRKNNForDBID(DBID id,
int k)
Get the reverse k nearest neighbors for a particular id.
|
List<DistanceResultPair<D>> |
getRKNNForObject(O obj,
int k)
Get the reverse k nearest neighbors for a particular object.
|
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
private final MaterializeKNNAndRKNNPreprocessor<O,D extends Distance<D>> preprocessor
private boolean warned
public PreprocessorRKNNQuery(Relation<O> database, MaterializeKNNAndRKNNPreprocessor<O,D> preprocessor)
database
- Database to querypreprocessor
- Preprocessor instance to usepublic PreprocessorRKNNQuery(Relation<O> database, MaterializeKNNAndRKNNPreprocessor.Factory<O,D> preprocessor)
database
- Database to querypreprocessor
- Preprocessor to usepublic List<DistanceResultPair<D>> getRKNNForDBID(DBID id, int k)
RKNNQuery
public List<DistanceResultPair<D>> getRKNNForObject(O obj, int k)
RKNNQuery
public List<List<DistanceResultPair<D>>> getRKNNForBulkDBIDs(ArrayDBIDs ids, int k)
RKNNQuery
public AbstractMaterializeKNNPreprocessor<O,D> getPreprocessor()