Class IndexDefinition
java.lang.Object
org.springframework.data.gemfire.config.schema.SchemaObjectDefinition
org.springframework.data.gemfire.config.schema.definitions.IndexDefinition
- All Implemented Interfaces:
Serializable,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
- Author:
- John Blum
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIndexDefinition(Index index) Constructs a new instance ofIndexDefinitiondefined with the givenIndex. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(GemfireAdminOperations gemfireAdminOperations) Creates an actual schema object from thisSchemaObjectDefinition.static IndexDefinitionFactory method used to construct a new instance ofIndexDefinitiondefined from the givenIndex.protected 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.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
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:
-
-
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:
-
getIndex
Returns a reference to theIndexon which this definition is defined. -
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:
-
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
-