Package elki.index.preprocessed.knn
Class CachedDoubleDistanceKNNPreprocessor<O>
- java.lang.Object
 - 
- elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor<O>
 - 
- elki.index.preprocessed.knn.CachedDoubleDistanceKNNPreprocessor<O>
 
 
 
- 
- Type Parameters:
 O- Object type
public class CachedDoubleDistanceKNNPreprocessor<O> extends AbstractMaterializeKNNPreprocessor<O>
Preprocessor that loads an existing cached kNN result.- Since:
 - 0.6.0
 - Author:
 - Erich Schubert
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCachedDoubleDistanceKNNPreprocessor.Factory<O>The parameterizable factory. 
- 
Field Summary
Fields Modifier and Type Field Description private java.nio.file.PathfilenameFile to load.private static LoggingLOGClass logger.- 
Fields inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor
distance, distanceQuery, k, relation, storage 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CachedDoubleDistanceKNNPreprocessor(Relation<O> relation, Distance<? super O> distance, int k, java.nio.file.Path file)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LogginggetLogger()Get the classes static logger.protected voidpreprocess()Perform the preprocessing step.- 
Methods inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor
createStorage, get, getDistanceQuery, getK, initialize, kNNByDBID, kNNByObject 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface elki.index.Index
logStatistics 
 - 
 
 - 
 
- 
- 
Field Detail
- 
filename
private java.nio.file.Path filename
File to load. 
- 
LOG
private static final Logging LOG
Class logger. 
 - 
 
- 
Method Detail
- 
preprocess
protected void preprocess()
Description copied from class:AbstractMaterializeKNNPreprocessorPerform the preprocessing step.- Specified by:
 preprocessin classAbstractMaterializeKNNPreprocessor<O>
 
- 
getLogger
protected Logging getLogger()
Description copied from class:AbstractMaterializeKNNPreprocessorGet the classes static logger.- Specified by:
 getLoggerin classAbstractMaterializeKNNPreprocessor<O>- Returns:
 - Logger
 
 
 - 
 
 -