public interface Index
Region
.
For a description of the types of indexes that GemFire currently supports, see IndexType.
An index is specified using a name, indexedExpression, fromClause, and optionally a projectionAttributes.
The name uniquely identifies the index to for the statistics services in GemFire.
The indexedExpression is the lookup value for the index. The way that an indexedExpression is specified and used varies depending on the type of index. For more information, see IndexType.
The fromClause specifies the collection(s) of objects that the index ranges over, and must contain one and only one region path.
The optional projectAttributes specifies a tranformation that is done on the values and is used for pre-computing a corresponding projection as defined in a query.
QueryService.createIndex(String, IndexType, String, String)
,
IndexType
Modifier and Type | Method and Description |
---|---|
String |
getCanonicalizedFromClause()
Get the canonicalized fromClause for this index.
|
String |
getCanonicalizedIndexedExpression()
Get the canonicalized indexedExpression for this index.
|
String |
getCanonicalizedProjectionAttributes()
Get the canonicalized projectionAttributes for this expression.
|
String |
getFromClause()
Get the original fromClause for this index.
|
String |
getIndexedExpression()
Get the original indexedExpression for this index.
|
String |
getName()
Returns the unique name of this index
|
String |
getProjectionAttributes()
Get the original projectionAttributes for this expression.
|
Region<?,?> |
getRegion()
The Region this index is on
|
IndexStatistics |
getStatistics()
Get statistics information for this index.
|
IndexType |
getType()
Get the index type
|
default boolean |
isValid()
Get whether index is valid to be used in queries.
|
String getName()
IndexType getType()
Region<?,?> getRegion()
IndexStatistics getStatistics()
UnsupportedOperationException
- for indexes created on Maps. Example: Index on Maps with
expression p['key']. String getFromClause()
default boolean isValid()
String getCanonicalizedFromClause()
String getIndexedExpression()
String getCanonicalizedIndexedExpression()
String getProjectionAttributes()
String getCanonicalizedProjectionAttributes()