public class IndexDefinition extends SchemaObjectDefinition
IndexDefinition
is an Abstract Data Type (ADT) encapsulating the configuration meta-data used to define
a new Apache Geode / Pivotal GemFire Region
Index
.Region
,
Index
,
IndexType
,
GemfireAdminOperations
,
SchemaObjectDefinition
,
SchemaObjectType
,
Serialized FormModifier and Type | Class and Description |
---|---|
protected static class |
IndexDefinition.IndexWrapper |
Modifier and Type | Field and Description |
---|---|
protected static int |
ORDER |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier | Constructor and Description |
---|---|
protected |
IndexDefinition(org.apache.geode.cache.query.Index index)
Constructs a new instance of
IndexDefinition defined with the given Index . |
Modifier and Type | Method and Description |
---|---|
IndexDefinition |
as(org.apache.geode.cache.query.IndexType gemfireGeodeIndexType) |
IndexDefinition |
as(IndexType indexType) |
void |
create(GemfireAdminOperations gemfireAdminOperations)
Creates an actual schema object from this
SchemaObjectDefinition . |
static IndexDefinition |
from(org.apache.geode.cache.query.Index index)
Factory method used to construct a new instance of
IndexDefinition defined from the given Index . |
String |
getExpression() |
String |
getFromClause() |
protected org.apache.geode.cache.query.Index |
getIndex()
Returns a reference to the
Index on which this definition is defined. |
IndexType |
getIndexType() |
String |
getName()
Returns the
name assigned to the schema object. |
int |
getOrder()
Get the order value of this object.
|
SchemaObjectType |
getType()
Returns the
type of schema object defined by this SchemaObjectDefinition . |
IndexDefinition |
having(String expression) |
IndexDefinition |
on(org.apache.geode.cache.Region<?,?> region) |
IndexDefinition |
on(String fromClause) |
IndexDefinition |
with(String name) |
equals, hashCode, toString
protected static final int ORDER
protected IndexDefinition(org.apache.geode.cache.query.Index index)
IndexDefinition
defined with the given Index
.index
- Index
on which this definition is defined; must not be null.IllegalArgumentException
- if Index
is null.Index
public static IndexDefinition from(org.apache.geode.cache.query.Index index)
IndexDefinition
defined from the given Index
.index
- Index
on which the new IndexDefinition
will be defined;
must not be null.IndexDefinition
defined from the given Index
.IllegalArgumentException
- if Index
is null.Index
protected org.apache.geode.cache.query.Index getIndex()
Index
on which this definition is defined.Index
on which this definition is defined.Index
public String getName()
SchemaObjectDefinition
name
assigned to the schema object.getName
in class SchemaObjectDefinition
name
assigned to the schema object; name is never null.public String getExpression()
public String getFromClause()
public IndexType getIndexType()
public int getOrder()
Ordered
public SchemaObjectType getType()
SchemaObjectDefinition
type
of schema object defined by this SchemaObjectDefinition
.getType
in class SchemaObjectDefinition
type
of schema object defined by this SchemaObjectDefinition
.SchemaObjectType
public void create(GemfireAdminOperations gemfireAdminOperations)
SchemaObjectDefinition
SchemaObjectDefinition
.create
in class SchemaObjectDefinition
gemfireAdminOperations
- GemfireAdminOperations
used to create an actual schema object from this
SchemaObjectDefinition
.GemfireAdminOperations
public IndexDefinition as(org.apache.geode.cache.query.IndexType gemfireGeodeIndexType)
public IndexDefinition as(IndexType indexType)
public IndexDefinition having(String expression)
public IndexDefinition on(org.apache.geode.cache.Region<?,?> region)
public IndexDefinition on(String fromClause)
public IndexDefinition with(String name)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.