Enum GridCacheQueryType
- java.lang.Object
-
- java.lang.Enum<GridCacheQueryType>
-
- org.apache.ignite.internal.processors.cache.query.GridCacheQueryType
-
- All Implemented Interfaces:
Serializable,Comparable<GridCacheQueryType>
public enum GridCacheQueryType extends Enum<GridCacheQueryType>
Defines different cache query types. For more information on cache query types and their usage seeCacheQuerydocumentation.- See Also:
CacheQuery
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INDEXIndex query.SCANFully scans cache returning only entries that pass certain filters.SETCache set items query.SPIUser provided indexing SPI based query.SQLSQL-based query.SQL_FIELDSSQL-based fields query.TEXTText search query.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable GridCacheQueryTypefromOrdinal(byte ord)Efficiently gets enumerated value from its ordinal.static GridCacheQueryTypevalueOf(String name)Returns the enum constant of this type with the specified name.static GridCacheQueryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPI
public static final GridCacheQueryType SPI
User provided indexing SPI based query.
-
SCAN
public static final GridCacheQueryType SCAN
Fully scans cache returning only entries that pass certain filters.
-
SQL
public static final GridCacheQueryType SQL
SQL-based query.
-
SQL_FIELDS
public static final GridCacheQueryType SQL_FIELDS
SQL-based fields query.
-
TEXT
public static final GridCacheQueryType TEXT
Text search query.
-
SET
public static final GridCacheQueryType SET
Cache set items query.
-
INDEX
public static final GridCacheQueryType INDEX
Index query.
-
-
Method Detail
-
values
public static GridCacheQueryType[] 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 (GridCacheQueryType c : GridCacheQueryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GridCacheQueryType 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 nameNullPointerException- if the argument is null
-
fromOrdinal
@Nullable public static @Nullable GridCacheQueryType fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.- Parameters:
ord- Ordinal value.- Returns:
- Enumerated value.
-
-