public class FileSequentialScan extends Algorithm
Algorithm.AlgorithmConstructor
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
clazz |
protected java.lang.String |
file
One instance of bucket where all objects are stored
|
protected int |
nThreads |
log, maximalConcurrentOperations
Constructor and Description |
---|
FileSequentialScan(java.lang.String file,
java.lang.String clazz,
int nThreads)
Creates a new instance of SequantialScan access structure with the given bucket and filtering pivots.
|
Modifier and Type | Method and Description |
---|---|
void |
algorithmInfo(GetAlgorithmInfoOperation operation)
Method for processing
GetAlgorithmInfoOperation . |
void |
batchQuerySearch(BatchKNNQueryOperation operation)
Processes the batch k-NN operation; the batch is split into sub-batches which are processed
in parallel.
|
void |
singleQueryObjectSearch(RankingSingleQueryOperation operation)
Evaluates a ranking single query object operation on this algorithm.
|
java.lang.String |
toString()
Converts the object to a string representation
|
afterStoreToFile, backgroundExecuteOperation, backgroundExecuteOperationIndependent, backgroundExecuteOperationWithStatistics, beforeStoreToFile, createBackgroundExecutionCallable, destroy, execute, executeMethodWithStringArguments, executeOperation, executeUsingNavDir, finalize, getAllRunningOperations, getAnnotatedConstructors, getAnnotatedConstructorsArray, getConstructorArgumentDescriptions, getConstructorDescription, getConstructorDescriptionSimple, getExecutorParamClasses, getFirstSupportedOperation, getName, getObjectClass, getObjectCount, getOperationStatistics, getOperationsThreadPool, getOperationSubClasses, getQueryAnswer, getQueryAnswer, getRunningOperationById, getRunningOperationsCount, getSupportedOperations, getSupportedOperations, methodExecute, resetOperationStatistics, restoreFromFile, restoreFromFile, setExecutedOperationsLogVerbosity, setOperationsThreadPool, setupStatsAndExecuteOperation, statisticsAfterOperation, statisticsBeforeOperation, storeToFile, terminateOperation, terminateOperation, waitBackgroundExecution
protected final java.lang.String file
protected final java.lang.String clazz
protected final int nThreads
public FileSequentialScan(java.lang.String file, java.lang.String clazz, int nThreads)
file
- file with text representation of objectsclazz
- class of the data objects in the filepublic void algorithmInfo(GetAlgorithmInfoOperation operation)
GetAlgorithmInfoOperation
.
The processing will fill the algorithm info with this
algorithm toString()
value.operation
- the operation to processpublic void singleQueryObjectSearch(RankingSingleQueryOperation operation) throws java.io.IOException
operation
- the operation to evaluatejava.io.IOException
public void batchQuerySearch(BatchKNNQueryOperation operation) throws java.io.IOException, java.lang.ClassNotFoundException
operation
- batch operation to be processedjava.io.IOException
- if the data file cannot be readjava.lang.ClassNotFoundException
- if the specified data class is not validpublic java.lang.String toString()
toString
in class java.lang.Object