public interface IndexDefinition
Modifier and Type | Interface and Description |
---|---|
static class |
IndexDefinition.IndexType
Types of an index: PRIMARY_KEY_INDEX, NATIVE_SECONDARY_INDEX, EXTERNAL_SECONDARY_INDEX
|
Modifier and Type | Method and Description |
---|---|
boolean |
allColumnsIndexed(Collection<LogicalExpression> columns)
Check if this index have all the columns specified in the supplied list of columns indexed
|
org.apache.calcite.rel.RelCollation |
getCollation()
Get the collation property (physical ordering) of the index.
|
Map<LogicalExpression,org.apache.calcite.rel.RelFieldCollation> |
getCollationMap()
Get a mapping of the LogicalExpresion/SchemaPath to its field collation
- e.g Ascending/Descending, Nulls First/Nulls Last
|
int |
getIndexColumnOrdinal(LogicalExpression path)
Check to see if the field name is an index column and if so return the ordinal position in the index
|
List<LogicalExpression> |
getIndexColumns()
Get the list of columns in the index key.
|
String |
getIndexName()
Get the name of the index
|
IndexDefinition.IndexType |
getIndexType()
Get the type of this index based on
IndexDefinition.IndexType |
List<LogicalExpression> |
getNonIndexColumns()
Get the list of columns that are in the 'included' or 'covered' fields.
|
org.apache.calcite.rel.RelFieldCollation.NullDirection |
getNullsOrderingDirection()
Get the nulls ordering of this index
|
List<LogicalExpression> |
getRowKeyColumns()
Get the list of columns (typically 1 column) that constitute the row key (primary key)
|
String |
getTableName()
Get the name of the table this index is associated with
|
boolean |
isCoveringIndex(List<LogicalExpression> columns)
Check if this index 'covers' all the columns specified in the supplied list of columns
|
boolean |
someColumnsIndexed(Collection<LogicalExpression> columns)
Check if this index has some columns specified in the supplied list of columns indexed
|
int getIndexColumnOrdinal(LogicalExpression path)
path
- The field path you want to compare to index column names.String getIndexName()
boolean isCoveringIndex(List<LogicalExpression> columns)
columns
- boolean allColumnsIndexed(Collection<LogicalExpression> columns)
columns
- boolean someColumnsIndexed(Collection<LogicalExpression> columns)
columns
- List<LogicalExpression> getRowKeyColumns()
String getTableName()
IndexDefinition.IndexType getIndexType()
IndexDefinition.IndexType
IndexDefinition.IndexType
List<LogicalExpression> getIndexColumns()
List<LogicalExpression> getNonIndexColumns()
org.apache.calcite.rel.RelCollation getCollation()
Map<LogicalExpression,org.apache.calcite.rel.RelFieldCollation> getCollationMap()
org.apache.calcite.rel.RelFieldCollation.NullDirection getNullsOrderingDirection()
Copyright © 1970 The Apache Software Foundation. All rights reserved.