|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BlurQuery._Fields>
org.apache.blur.thrift.generated.BlurQuery._Fields
public static enum BlurQuery._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
Enum Constant Summary | |
---|---|
CACHE_RESULT
Enabled by default to cache this result. |
|
FACETS
A list of Facets to execute with the given query. |
|
FETCH
The number of fetched results, 10 by default. |
|
MAX_QUERY_TIME
The maximum amount of time the query should execute before timing out. |
|
MINIMUM_NUMBER_OF_RESULTS
The minimum number of results to find before returning. |
|
QUERY
The query information. |
|
ROW_ID
Optional optimization for record queries to run against a single row. |
|
SELECTOR
Selector is used to fetch data in the search results, if null only location ids will be fetched. |
|
SORT_FIELDS
The sortfields are applied in order to sort the results. |
|
START
The starting result position, 0 by default. |
|
START_TIME
Sets the start time, if 0 the controller sets the time. |
|
USE_CACHE_IF_PRESENT
Enabled by default to use a cached result if the query matches a previous run query with the configured amount of time. |
|
USER_CONTEXT
Sets a user context, only used for logging at this point. |
|
UUID
Sets the uuid of this query, this is normal set by the client so that the status of a running query can be found or the query can be canceled. |
Method Summary | |
---|---|
static BlurQuery._Fields |
findByName(String name)
Find the _Fields constant that matches name, or null if its not found. |
static BlurQuery._Fields |
findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found. |
static BlurQuery._Fields |
findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. |
String |
getFieldName()
Get the field's name, exactly as in the IDL. |
short |
getThriftFieldId()
Get the Thrift field id for the named field. |
static BlurQuery._Fields |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BlurQuery._Fields[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BlurQuery._Fields QUERY
public static final BlurQuery._Fields FACETS
public static final BlurQuery._Fields SELECTOR
public static final BlurQuery._Fields USE_CACHE_IF_PRESENT
public static final BlurQuery._Fields START
public static final BlurQuery._Fields FETCH
public static final BlurQuery._Fields MINIMUM_NUMBER_OF_RESULTS
public static final BlurQuery._Fields MAX_QUERY_TIME
public static final BlurQuery._Fields UUID
public static final BlurQuery._Fields USER_CONTEXT
public static final BlurQuery._Fields CACHE_RESULT
public static final BlurQuery._Fields START_TIME
public static final BlurQuery._Fields SORT_FIELDS
public static final BlurQuery._Fields ROW_ID
Method Detail |
---|
public static BlurQuery._Fields[] values()
for (BlurQuery._Fields c : BlurQuery._Fields.values()) System.out.println(c);
public static BlurQuery._Fields valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static BlurQuery._Fields findByThriftId(int fieldId)
public static BlurQuery._Fields findByThriftIdOrThrow(int fieldId)
public static BlurQuery._Fields findByName(String name)
public short getThriftFieldId()
TFieldIdEnum
getThriftFieldId
in interface TFieldIdEnum
public String getFieldName()
TFieldIdEnum
getFieldName
in interface TFieldIdEnum
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |