V
- vector typeD
- distance typepublic class KNNJoinMaterializeKNNPreprocessor<V extends NumberVector<?>,D extends Distance<D>> extends AbstractMaterializeKNNPreprocessor<V,D,KNNList<D>>
Modifier and Type | Class and Description |
---|---|
static class |
KNNJoinMaterializeKNNPreprocessor.Factory<O extends NumberVector<?>,D extends Distance<D>>
The parameterizable factory.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Logging class.
|
distanceFunction, distanceQuery, k
storage
relation
Constructor and Description |
---|
KNNJoinMaterializeKNNPreprocessor(Relation<V> relation,
DistanceFunction<? super V,D> distanceFunction,
int k)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the classes static logger.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
void |
logStatistics()
Send statistics to the logger, if enabled.
|
protected void |
preprocess()
Perform the preprocessing step.
|
createStorage, get, getDistanceFactory, getDistanceQuery, getK, getKNNQuery, initialize
private static final Logging LOG
public KNNJoinMaterializeKNNPreprocessor(Relation<V> relation, DistanceFunction<? super V,D> distanceFunction, int k)
relation
- Relation to indexdistanceFunction
- Distance functionk
- kprotected void preprocess()
AbstractMaterializeKNNPreprocessor
preprocess
in class AbstractMaterializeKNNPreprocessor<V extends NumberVector<?>,D extends Distance<D>,KNNList<D extends Distance<D>>>
protected Logging getLogger()
AbstractPreprocessorIndex
getLogger
in class AbstractPreprocessorIndex<V extends NumberVector<?>,KNNList<D extends Distance<D>>>
public String getLongName()
Result
getLongName
in interface Result
getLongName
in class AbstractIndex<V extends NumberVector<?>>
public String getShortName()
Result
getShortName
in interface Result
getShortName
in class AbstractIndex<V extends NumberVector<?>>
public void logStatistics()
Index