O
- the type of database objects the preprocessor can be applied toD
- the type of distance the used distance function will returnN
- the type of spatial nodes in the spatial indexE
- the type of spatial entries in the spatial indexpublic static class MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O extends NumberVector<?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry> extends AbstractMaterializeKNNPreprocessor.Factory<O,D,KNNList<D>>
Modifier and Type | Class and Description |
---|---|
static class |
MetricalIndexApproximationMaterializeKNNPreprocessor.Factory.Parameterizer<O extends NumberVector<?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry>
Parameterization class.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
MetricalIndexApproximationMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MetricalIndexApproximationMaterializeKNNPreprocessor<O,D,N,E> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFactory, getDistanceFunction, getInputTypeRestriction
public MetricalIndexApproximationMaterializeKNNPreprocessor.Factory(int k, DistanceFunction<? super O,D> distanceFunction)
k
- kdistanceFunction
- distance functionpublic MetricalIndexApproximationMaterializeKNNPreprocessor<O,D,N,E> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O extends NumberVector<?>,KNNIndex<O extends NumberVector<?>>>
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O extends NumberVector<?>,D extends Distance<D>,KNNList<D extends Distance<D>>>
relation
- the relation to index