org.infinispan.query.clustered
Enum ClusteredQueryCommandType

java.lang.Object
  extended by java.lang.Enum<ClusteredQueryCommandType>
      extended by org.infinispan.query.clustered.ClusteredQueryCommandType
All Implemented Interfaces:
Serializable, Comparable<ClusteredQueryCommandType>

public enum ClusteredQueryCommandType
extends Enum<ClusteredQueryCommandType>

Types of ClusteredQueryCommandWorker. Each type defines a different behavior for a ClusteredQueryCommand...

Since:
5.1
Author:
Israel Lacerra

Enum Constant Summary
CREATE_EAGER_ITERATOR
           
CREATE_LAZY_ITERATOR
           
DESTROY_LAZY_ITERATOR
           
GET_RESULT_SIZE
           
GET_SOME_KEYS
           
 
Method Summary
 ClusteredQueryCommandWorker getCommand(Cache<?,?> cache, org.hibernate.search.query.engine.spi.HSQuery query, UUID lazyQueryId, int docIndex)
           
protected abstract  ClusteredQueryCommandWorker getNewInstance()
           
static ClusteredQueryCommandType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ClusteredQueryCommandType[] 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

CREATE_LAZY_ITERATOR

public static final ClusteredQueryCommandType CREATE_LAZY_ITERATOR

CREATE_EAGER_ITERATOR

public static final ClusteredQueryCommandType CREATE_EAGER_ITERATOR

DESTROY_LAZY_ITERATOR

public static final ClusteredQueryCommandType DESTROY_LAZY_ITERATOR

GET_SOME_KEYS

public static final ClusteredQueryCommandType GET_SOME_KEYS

GET_RESULT_SIZE

public static final ClusteredQueryCommandType GET_RESULT_SIZE
Method Detail

values

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

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

valueOf

public static ClusteredQueryCommandType 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

getNewInstance

protected abstract ClusteredQueryCommandWorker getNewInstance()

getCommand

public ClusteredQueryCommandWorker getCommand(Cache<?,?> cache,
                                              org.hibernate.search.query.engine.spi.HSQuery query,
                                              UUID lazyQueryId,
                                              int docIndex)

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.