org.elasticsearch.action.search
Enum SearchOperationThreading

java.lang.Object
  extended by java.lang.Enum<SearchOperationThreading>
      extended by org.elasticsearch.action.search.SearchOperationThreading
All Implemented Interfaces:
Serializable, Comparable<SearchOperationThreading>

public enum SearchOperationThreading
extends Enum<SearchOperationThreading>

Controls the operation threading model for search operation that are performed locally on the executing node.


Enum Constant Summary
NO_THREADS
          No threads are used, all the local shards operations will be performed on the calling thread.
SINGLE_THREAD
          The local shards operations will be performed in serial manner on a single forked thread.
THREAD_PER_SHARD
          Each local shard operation will execute on its own thread.
 
Method Summary
static SearchOperationThreading fromId(byte id)
           
static SearchOperationThreading fromString(String value, SearchOperationThreading defaultValue)
           
 byte id()
           
static SearchOperationThreading valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SearchOperationThreading[] 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

NO_THREADS

public static final SearchOperationThreading NO_THREADS
No threads are used, all the local shards operations will be performed on the calling thread.


SINGLE_THREAD

public static final SearchOperationThreading SINGLE_THREAD
The local shards operations will be performed in serial manner on a single forked thread.


THREAD_PER_SHARD

public static final SearchOperationThreading THREAD_PER_SHARD
Each local shard operation will execute on its own thread.

Method Detail

values

public static SearchOperationThreading[] 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 (SearchOperationThreading c : SearchOperationThreading.values())
    System.out.println(c);

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

valueOf

public static SearchOperationThreading valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

id

public byte id()

fromId

public static SearchOperationThreading fromId(byte id)

fromString

public static SearchOperationThreading fromString(String value,
                                                  @Nullable
                                                  SearchOperationThreading defaultValue)


Copyright © 2009-2012. All Rights Reserved.