|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.operations.AbstractOperation
messif.operations.QueryOperation<RankedAbstractObject>
messif.operations.RankingQueryOperation
messif.operations.query.RangeQueryOperation
messif.operations.query.ApproxRangeQueryOperation
public class ApproxRangeQueryOperation
Approximate range query with specific early termination parameters and support for obtaining some guarantees on results.
Nested Class Summary | |
---|---|
static class |
ApproxRangeQueryOperation.LocalSearchType
Type of the local approximation parameter: PERCENTAGE, ABS_OBJ_COUNT, ABS_DC_COUNT. |
Nested classes/interfaces inherited from class messif.operations.AbstractOperation |
---|
AbstractOperation.DataEqualOperation, AbstractOperation.OperationConstructor, AbstractOperation.OperationName |
Field Summary | |
---|---|
protected int |
localSearchParam
Value of the local approximation parameter. |
protected ApproxRangeQueryOperation.LocalSearchType |
localSearchType
Type of the local approximation parameter used. |
protected float |
radiusGuaranteed
Radius for which the answer is guaranteed as correct. |
Fields inherited from class messif.operations.query.RangeQueryOperation |
---|
queryObject, radius |
Fields inherited from class messif.operations.QueryOperation |
---|
answerType |
Fields inherited from class messif.operations.AbstractOperation |
---|
errValue, operID, suppData |
Constructor Summary | |
---|---|
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,
ApproxRangeQueryOperation.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 localSearchParam,
ApproxRangeQueryOperation.LocalSearchType localSearchType,
float radiusGuaranteed)
Creates a new instance of ApproxRangeQueryOperation for a given query object, radius and parameters that control the approximation. |
Method Summary | |
---|---|
int |
getLocalSearchParam()
Returns the currently set value of approximation threshold. |
ApproxRangeQueryOperation.LocalSearchType |
getLocalSearchType()
Returns currently set type of approximation, see localSearchType . |
float |
getRadiusGuaranteed()
Returns a currently set value of radius within which the results are guaranteed as correct. |
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. |
Methods inherited from class messif.operations.query.RangeQueryOperation |
---|
clearSurplusData, dataEqualsImpl, dataHashCode, evaluate, getAnswerClass, getAnswerThreshold, getArgument, getArgumentCount, getQueryObject, getRadius |
Methods inherited from class messif.operations.RankingQueryOperation |
---|
addToAnswer, addToAnswer, clone, getAnswer, getAnswer, getAnswerCount, getAnswerDistance, getAnswerObjects, getLastAnswer, isAnswerFull, isStoringMetaDistances, resetAnswer, setAnswerCollection, updateFrom, updateFrom |
Methods inherited from class messif.operations.QueryOperation |
---|
appendErrorCode, endOperation, getAnswerType, wasSuccessful |
Methods inherited from class messif.operations.AbstractOperation |
---|
appendArguments, createOperation, dataEquals, endOperation, equals, getAnnotatedConstructor, getAnnotatedConstructor, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, hashCode, isFinished |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final ApproxRangeQueryOperation.LocalSearchType localSearchType
protected final int localSearchParam
localSearchType
.
protected float radiusGuaranteed
Constructor Detail |
---|
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, ApproxRangeQueryOperation.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, ApproxRangeQueryOperation.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 correctMethod Detail |
---|
public ApproxRangeQueryOperation.LocalSearchType getLocalSearchType()
localSearchType
.
public int getLocalSearchParam()
localSearchType
.
public void setRadiusGuaranteed(float radiusGuaranteed)
radiusGuaranteed
- new value of radiuspublic float getRadiusGuaranteed()
public java.lang.String toString()
toString
in class AbstractOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |