net.obsearch.index.utils
Class AbstractNewLineCommandLineShort<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>
java.lang.Object
net.obsearch.index.utils.AbstractCommandLine<O,I,A>
net.obsearch.index.utils.AbstractNewLineCommandLine<O,I,A>
net.obsearch.index.utils.AbstractNewLineCommandLineShort<O,I,A>
- Type Parameters:
O
- Object that we are handlingI
- The index that stores all dataA
- The ambient that controls the index.
- All Implemented Interfaces:
- org.opt4j.core.problem.Evaluator<org.opt4j.benchmark.DoubleString>
public abstract class AbstractNewLineCommandLineShort<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>
- extends AbstractNewLineCommandLine<O,I,A>
In this command line helper, data is separated by newlines and
Index and objects are of type short.
- Author:
- Arnoldo Jose Muller-Molina
Fields inherited from class net.obsearch.index.utils.AbstractCommandLine |
approxEvalEp, approxEvalRecall, bulkMode, experimentName, experimentResultFileName, experimentSet, iterations, k, maxQueries, mode, optNumChildren, optNumParents, optPopulationSize, pivots, props, queries, r, time, validate |
Methods inherited from class net.obsearch.index.utils.AbstractCommandLine |
add, closeAll, create, evaluate, expDetails, expName, getCreator, getIndex, getObjectives, getReference, initProperties, instantiateAmbient, instantiateNewAmbient, isApproxMode, processUserCommands, search, searchAux, updateIndexConfig, updateParams, writeAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
histogram
protected boolean histogram
histogramFile
protected File histogramFile
seq
protected ArrayList<O extends OBShort> seq
AbstractNewLineCommandLineShort
public AbstractNewLineCommandLineShort()
searchObjectApprox
protected void searchObjectApprox(I index,
O object,
Statistics other)
throws NotFrozenException,
IllegalIdException,
OutOfRangeException,
InstantiationException,
IllegalAccessException,
OBException,
IOException
- Description copied from class:
AbstractNewLineCommandLine
- Search object in approx mode.
- Specified by:
searchObjectApprox
in class AbstractNewLineCommandLine<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>
- Parameters:
index
- The index to be searched.object
- The object to search.
- Throws:
NotFrozenException
IllegalIdException
OutOfRangeException
InstantiationException
IllegalAccessException
OBException
IOException
obtainClass
protected abstract Class<O> obtainClass()
searchObject
protected void searchObject(I index,
O object,
Statistics other)
throws NotFrozenException,
IllegalIdException,
OutOfRangeException,
InstantiationException,
IllegalAccessException,
OBException,
IOException
- Description copied from class:
AbstractNewLineCommandLine
- The subclass implements this method and decides to print or do something
with the result.
- Specified by:
searchObject
in class AbstractNewLineCommandLine<O extends OBShort,I extends IndexShort<O>,A extends Ambient<O,I>>
- Parameters:
index
- The index to be searched.object
- The object to search.
- Throws:
NotFrozenException
IllegalIdException
OutOfRangeException
InstantiationException
IllegalAccessException
OBException
IOException
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.