public class QuantizeOperation extends RankingMultiQueryOperation
QueryOperation.DataEqualOperation
AbstractOperation.OperationConstructor, AbstractOperation.OperationName
suppData, uuidOperationComparator
Constructor and Description |
---|
QuantizeOperation(java.util.Iterator<? extends LocalAbstractObject> objectsIterator,
int count)
Creates a new instance of QuantizeOperation.
|
QuantizeOperation(LocalAbstractObject[] objects)
Creates a new instance of QuantizeOperation for given objects.
|
Modifier and Type | Method and Description |
---|---|
int |
evaluate(AbstractObjectIterator<? extends LocalAbstractObject> objects)
Evaluate this query on a given set of objects.
|
addToAnswer, addToAnswer, addToAnswerInternal, clearSurplusData, clone, createOperation, dataEqualsImpl, dataHashCode, getArgumentString, getDistanceFunction, getQueryObject, getQueryObjects, getQueryObjectsCount, isStoringIndividualDistances, loadObjects, toObjectArray
addToAnswer, endOperation, getAnswer, getAnswer, getAnswerClass, getAnswerCollectionClass, getAnswerCollectionClone, getAnswerComparator, getAnswerCount, getAnswerDistance, getAnswerDistanceRestricted, getAnswerDistanceRestricted, getAnswerMaximalCapacity, getAnswerObjects, getAnswerThreshold, getLastAnswer, getSubAnswer, getSubAnswer, getSubAnswerCount, isAnswerFull, resetAnswer, setAnswerCollection, setAnswerIgnoringDuplicates, setAnswerThresholdComputation, setAnswerThresholdComputation, updateFrom, updateFrom
appendErrorCode, clone, dataEquals, endOperation, getAllSubAnswers, getAnswerType, getQueryAnswer, iterator, setAnswerType, wasSuccessful
appendArguments, containsParameter, createOperation, equals, getAnnotatedConstructor, getAnnotatedConstructor, getArgument, getArgumentCount, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, hashCode, isErrorCode, isFinished, removeParameter, setParameter, toString
public QuantizeOperation(LocalAbstractObject[] objects)
ObjectFeatureQuantized
.objects
- the objects to quantizepublic QuantizeOperation(java.util.Iterator<? extends LocalAbstractObject> objectsIterator, int count) throws java.util.NoSuchElementException
ObjectFeatureQuantized
.objectsIterator
- an iterator from which to get the list of objects to be quantizedcount
- the number of objects to read from the iteratorjava.util.NoSuchElementException
- if the inserted objects list is emptypublic int evaluate(AbstractObjectIterator<? extends LocalAbstractObject> objects)
QueryOperation
evaluate
in class QueryOperation<RankedAbstractObject>
objects
- the collection of objects on which to evaluate this query