messif.operations.query
Enum ApproxRangeQueryOperation.LocalSearchType

java.lang.Object
  extended by java.lang.Enum<ApproxRangeQueryOperation.LocalSearchType>
      extended by messif.operations.query.ApproxRangeQueryOperation.LocalSearchType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ApproxRangeQueryOperation.LocalSearchType>
Enclosing class:
ApproxRangeQueryOperation

public static enum ApproxRangeQueryOperation.LocalSearchType
extends java.lang.Enum<ApproxRangeQueryOperation.LocalSearchType>

Type of the local approximation parameter: PERCENTAGE, ABS_OBJ_COUNT, ABS_DC_COUNT. It can be view as a type of stop condition for early termination strategy of approximation.


Enum Constant Summary
ABS_DC_COUNT
          Stop after the specific number of evaluations of distance functions.
ABS_OBJ_COUNT
          Stop after inspecting the specific number of objects.
PERCENTAGE
          Stop after inspecting given percentage of data.
 
Method Summary
static ApproxRangeQueryOperation.LocalSearchType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ApproxRangeQueryOperation.LocalSearchType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PERCENTAGE

public static final ApproxRangeQueryOperation.LocalSearchType PERCENTAGE
Stop after inspecting given percentage of data. ApproxRangeQueryOperation.localSearchParam holds the value between 0-100.


ABS_OBJ_COUNT

public static final ApproxRangeQueryOperation.LocalSearchType ABS_OBJ_COUNT
Stop after inspecting the specific number of objects. ApproxRangeQueryOperation.localSearchParam is the number of objects.


ABS_DC_COUNT

public static final ApproxRangeQueryOperation.LocalSearchType ABS_DC_COUNT
Stop after the specific number of evaluations of distance functions. ApproxRangeQueryOperation.localSearchParam is the threshold on the number of distance computations.

Method Detail

values

public static ApproxRangeQueryOperation.LocalSearchType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ApproxRangeQueryOperation.LocalSearchType c : ApproxRangeQueryOperation.LocalSearchType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ApproxRangeQueryOperation.LocalSearchType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null