public class ApproxRangeQueryOperation extends RangeQueryOperation implements Approximate
QueryOperation.DataEqualOperation
AbstractOperation.OperationConstructor, AbstractOperation.OperationName
Approximate.LocalSearchType
Modifier and Type | Field and Description |
---|---|
protected int |
localSearchParam
Value of the local approximation parameter.
|
protected Approximate.LocalSearchType |
localSearchType
Type of the local approximation parameter used.
|
protected float |
radiusGuaranteed
Radius for which the answer is guaranteed as correct.
|
radius
suppData, uuidOperationComparator
Constructor and Description |
---|
ApproxRangeQueryOperation(LocalAbstractObject queryObject,
float r)
Creates a new instance of ApproxRangeQueryOperation for a given query object and maximal number of objects to return.
|
ApproxRangeQueryOperation(LocalAbstractObject queryObject,
float r,
AnswerType answerType)
Creates a new instance of ApproxRangeQueryOperation for a given query object and radius.
|
ApproxRangeQueryOperation(LocalAbstractObject queryObject,
float r,
AnswerType answerType,
int localSearchParam,
Approximate.LocalSearchType localSearchType,
float radiusGuaranteed)
Creates a new instance of ApproxRangeQueryOperation for a given query object,
radius and parameters that control the approximation.
|
ApproxRangeQueryOperation(LocalAbstractObject queryObject,
float r,
int maxAnswerSize,
AnswerType answerType,
int localSearchParam,
Approximate.LocalSearchType localSearchType,
float radiusGuaranteed)
Creates a new instance of ApproxRangeQueryOperation for a given query object,
radius and parameters that control the approximation.
|
ApproxRangeQueryOperation(LocalAbstractObject queryObject,
float r,
int maxAnswerSize,
AnswerType answerType,
int localSearchParam,
Approximate.LocalSearchType localSearchType,
float radiusGuaranteed,
RankedSortedCollection answerCollection)
Creates a new instance of ApproxRangeQueryOperation for a given query object,
radius and parameters that control the approximation.
|
ApproxRangeQueryOperation(LocalAbstractObject queryObject,
float r,
int localSearchParam,
Approximate.LocalSearchType localSearchType,
float radiusGuaranteed)
Creates a new instance of ApproxRangeQueryOperation for a given query object,
radius and parameters that control the approximation.
|
Modifier and Type | Method and Description |
---|---|
int |
getLocalSearchParam()
Returns the value of the local approximation parameter.
|
Approximate.LocalSearchType |
getLocalSearchType()
Returns the
type of the local approximation parameter used. |
float |
getRadiusGuaranteed()
Returns a currently set value of radius within which the results are guaranteed as correct.
|
void |
setLocalSearchParam(int localSearchParam)
Setter for the local search parameter value.
|
void |
setLocalSearchType(Approximate.LocalSearchType localSearchType)
Setter for the type of the local search parameter.
|
void |
setRadiusGuaranteed(float radiusGuaranteed)
Set a different value of radius within which the results are guaranteed as correct.
|
java.lang.String |
toString()
Returns a string representation of this operation.
|
dataEqualsImpl, dataHashCode, evaluate, getAnswerThreshold, getArgument, getArgumentCount, getRadius
addToAnswer, addToAnswer, clearSurplusData, clone, createOperation, getQueryObject, isStoringMetaDistances
addToAnswer, endOperation, getAnswer, getAnswer, getAnswerClass, getAnswerCollectionClass, getAnswerCollectionClone, getAnswerComparator, getAnswerCount, getAnswerDistance, getAnswerDistanceRestricted, getAnswerDistanceRestricted, getAnswerMaximalCapacity, getAnswerObjects, 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, getArgumentString, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, hashCode, isErrorCode, isFinished, removeParameter, setParameter
protected Approximate.LocalSearchType localSearchType
protected int localSearchParam
localSearchType
.protected float radiusGuaranteed
public ApproxRangeQueryOperation(LocalAbstractObject queryObject, float r)
AnswerType.NODATA_OBJECTS
will be returned in the result.queryObject
- query objectr
- query radiuspublic ApproxRangeQueryOperation(LocalAbstractObject queryObject, float r, AnswerType answerType)
queryObject
- the object to which the nearest neighbors are searchedr
- query radiusanswerType
- the type of objects this operation stores in its answerpublic ApproxRangeQueryOperation(LocalAbstractObject queryObject, float r, int localSearchParam, Approximate.LocalSearchType localSearchType, float radiusGuaranteed)
AnswerType.NODATA_OBJECTS
will be returned in the result.queryObject
- query objectr
- query radiuslocalSearchParam
- local search parameter - typically approximation parameterlocalSearchType
- type of the local search parameterradiusGuaranteed
- radius within which the answer is required to be guaranteed as correctpublic ApproxRangeQueryOperation(LocalAbstractObject queryObject, float r, AnswerType answerType, int localSearchParam, Approximate.LocalSearchType localSearchType, float radiusGuaranteed)
queryObject
- query objectr
- query radiusanswerType
- the type of objects this operation stores in its answerlocalSearchParam
- local search parameter - typically approximation parameterlocalSearchType
- type of the local search parameterradiusGuaranteed
- radius within which the answer is required to be guaranteed as correctpublic ApproxRangeQueryOperation(LocalAbstractObject queryObject, float r, int maxAnswerSize, AnswerType answerType, int localSearchParam, Approximate.LocalSearchType localSearchType, float radiusGuaranteed)
queryObject
- query objectr
- query radiusmaxAnswerSize
- sets the maximal answer sizeanswerType
- the type of objects this operation stores in its answerlocalSearchParam
- local search parameter - typically approximation parameterlocalSearchType
- type of the local search parameterradiusGuaranteed
- radius within which the answer is required to be guaranteed as correctpublic ApproxRangeQueryOperation(LocalAbstractObject queryObject, float r, int maxAnswerSize, AnswerType answerType, int localSearchParam, Approximate.LocalSearchType localSearchType, float radiusGuaranteed, RankedSortedCollection answerCollection)
queryObject
- query objectr
- query radiusmaxAnswerSize
- sets the maximal answer sizeanswerType
- the type of objects this operation stores in its answerlocalSearchParam
- local search parameter - typically approximation parameterlocalSearchType
- type of the local search parameterradiusGuaranteed
- radius within which the answer is required to be guaranteed as correctanswerCollection
- collection to be used as answer (it must be empty, otherwise it will be cleared)public Approximate.LocalSearchType getLocalSearchType()
Approximate
type of the local approximation
parameter used.getLocalSearchType
in interface Approximate
type of the local approximation
parameter usedpublic int getLocalSearchParam()
Approximate
local search type
.getLocalSearchParam
in interface Approximate
public void setLocalSearchType(Approximate.LocalSearchType localSearchType)
Approximate
setLocalSearchType
in interface Approximate
localSearchType
- new type of the local search parameterpublic void setLocalSearchParam(int localSearchParam)
Approximate
local search type
.setLocalSearchParam
in interface Approximate
localSearchParam
- new value for the local search parameterpublic float getRadiusGuaranteed()
Approximate
getRadiusGuaranteed
in interface Approximate
public void setRadiusGuaranteed(float radiusGuaranteed)
Approximate
setRadiusGuaranteed
in interface Approximate
radiusGuaranteed
- new guaranteed radius valuepublic java.lang.String toString()
toString
in class AbstractOperation