messif.operations.query
Enum ApproxKNNQueryOperation.LocalSearchType

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

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

Enumeration of types of the stop condition for approximation's early termination strategy.


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.
DATA_PARTITIONS
          Stop after a specific number of "data regions" (buckets, clusters) is accessed and searched.
PERCENTAGE
          Stop after inspecting given percentage of data.
 
Method Summary
static ApproxKNNQueryOperation.LocalSearchType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ApproxKNNQueryOperation.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 ApproxKNNQueryOperation.LocalSearchType PERCENTAGE
Stop after inspecting given percentage of data. ApproxKNNQueryOperation.localSearchParam holds the value between 0-100.


ABS_OBJ_COUNT

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


ABS_DC_COUNT

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


DATA_PARTITIONS

public static final ApproxKNNQueryOperation.LocalSearchType DATA_PARTITIONS
Stop after a specific number of "data regions" (buckets, clusters) is accessed and searched. ApproxKNNQueryOperation.localSearchParam is the limit on "data regions" (partitions, buckets, clusters) to be accessed.

Method Detail

values

public static ApproxKNNQueryOperation.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 (ApproxKNNQueryOperation.LocalSearchType c : ApproxKNNQueryOperation.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 ApproxKNNQueryOperation.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