
D - 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 SpatialApproximationMaterializeKNNPreprocessor.Factory<D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry> extends AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?>,D,KNNList<D>>
| Modifier and Type | Class and Description |
|---|---|
static class |
SpatialApproximationMaterializeKNNPreprocessor.Factory.Parameterizer<D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>
Parameterization class.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID| Constructor and Description |
|---|
SpatialApproximationMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super NumberVector<?>,D> distanceFunction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SpatialApproximationMaterializeKNNPreprocessor<NumberVector<?>,D,N,E> |
instantiate(Relation<NumberVector<?>> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFactory, getDistanceFunction, getInputTypeRestrictionpublic SpatialApproximationMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super NumberVector<?>,D> distanceFunction)
k - kdistanceFunction - distance functionpublic SpatialApproximationMaterializeKNNPreprocessor<NumberVector<?>,D,N,E> instantiate(Relation<NumberVector<?>> relation)
IndexFactoryinstantiate in interface IndexFactory<NumberVector<?>,KNNIndex<NumberVector<?>>>instantiate in class AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?>,D extends Distance<D>,KNNList<D extends Distance<D>>>relation - the relation to index