org.infinispan.query.clustered
Enum ClusteredQueryCommandType
java.lang.Object
java.lang.Enum<ClusteredQueryCommandType>
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
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
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.