O
- The object typeD
- The distance typepublic static class KNNJoinMaterializeKNNPreprocessor.Factory<O extends NumberVector<?>,D extends Distance<D>> extends AbstractMaterializeKNNPreprocessor.Factory<O,D,KNNResult<D>>
Modifier and Type | Class and Description |
---|---|
static class |
KNNJoinMaterializeKNNPreprocessor.Factory.Parameterizer<O extends NumberVector<?>,D extends Distance<D>>
Parameterization class
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
KNNJoinMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNJoinMaterializeKNNPreprocessor<O,D> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFactory, getDistanceFunction, getInputTypeRestriction
public KNNJoinMaterializeKNNPreprocessor.Factory(int k, DistanceFunction<? super O,D> distanceFunction)
k
- KdistanceFunction
- distance functionpublic KNNJoinMaterializeKNNPreprocessor<O,D> 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>,KNNResult<D extends Distance<D>>>
relation
- the relation to index