Spring Data for VMware GemFire
Class IndexDefinition
java.lang.Object
org.springframework.data.gemfire.config.schema.SchemaObjectDefinition
org.springframework.data.gemfire.config.schema.definitions.IndexDefinition
- All Implemented Interfaces:
Serializable,org.springframework.core.Ordered
IndexDefinition is an Abstract Data Type (ADT) encapsulating the configuration meta-data used to define
a new Apache Geode / Pivotal GemFire Region Index.- Since:
- 2.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIndexDefinition(org.apache.geode.cache.query.Index index) Constructs a new instance ofIndexDefinitiondefined with the givenIndex. -
Method Summary
Modifier and TypeMethodDescriptionas(org.apache.geode.cache.query.IndexType gemfireGeodeIndexType) voidcreate(GemfireAdminOperations gemfireAdminOperations) Creates an actual schema object from thisSchemaObjectDefinition.static IndexDefinitionfrom(org.apache.geode.cache.query.Index index) Factory method used to construct a new instance ofIndexDefinitiondefined from the givenIndex.protected org.apache.geode.cache.query.IndexgetIndex()Returns a reference to theIndexon which this definition is defined.getName()Returns thenameassigned to the schema object.intgetOrder()Get the order value of this object.getType()Returns thetypeof schema object defined by thisSchemaObjectDefinition.on(org.apache.geode.cache.Region<?, ?> region) Methods inherited from class org.springframework.data.gemfire.config.schema.SchemaObjectDefinition
equals, hashCode, toString
-
Field Details
-
ORDER
protected static final int ORDER- See Also:
-
-
Constructor Details
-
IndexDefinition
protected IndexDefinition(org.apache.geode.cache.query.Index index) Constructs a new instance ofIndexDefinitiondefined with the givenIndex.- Parameters:
index-Indexon which this definition is defined; must not be null.- Throws:
IllegalArgumentException- ifIndexis null.- See Also:
-
Index
-
-
Method Details
-
from
Factory method used to construct a new instance ofIndexDefinitiondefined from the givenIndex.- Parameters:
index-Indexon which the newIndexDefinitionwill be defined; must not be null.- Returns:
- a new instance of
IndexDefinitiondefined from the givenIndex. - Throws:
IllegalArgumentException- ifIndexis null.- See Also:
-
Index
-
getIndex
protected org.apache.geode.cache.query.Index getIndex()Returns a reference to theIndexon which this definition is defined.- Returns:
- a reference to the
Indexon which this definition is defined. - See Also:
-
Index
-
getName
Description copied from class:SchemaObjectDefinitionReturns thenameassigned to the schema object.- Overrides:
getNamein classSchemaObjectDefinition- Returns:
- the
nameassigned to the schema object; name is never null.
-
getExpression
-
getFromClause
-
getIndexType
-
getOrder
public int getOrder()Get the order value of this object.- Returns:
- the order value of this object.
- See Also:
-
Ordered
-
getType
Description copied from class:SchemaObjectDefinitionReturns thetypeof schema object defined by thisSchemaObjectDefinition.- Specified by:
getTypein classSchemaObjectDefinition- Returns:
- the
typeof schema object defined by thisSchemaObjectDefinition. - See Also:
-
create
Description copied from class:SchemaObjectDefinitionCreates an actual schema object from thisSchemaObjectDefinition.- Overrides:
createin classSchemaObjectDefinition- Parameters:
gemfireAdminOperations-GemfireAdminOperationsused to create an actual schema object from thisSchemaObjectDefinition.- See Also:
-
as
-
as
-
having
-
on
-
on
-
with
-