public interface IndexCollection extends Iterable<IndexDescriptor>
Modifier and Type | Interface and Description |
---|---|
static class |
IndexCollection.IndexCollectionType
Types of an index collections: NATIVE_SECONDARY_INDEX_COLLECTION, EXTERNAL_SECONDARY_INDEX_COLLECTION
|
Modifier and Type | Method and Description |
---|---|
boolean |
addIndex(IndexDescriptor index)
Add a new index to the collection.
|
void |
clearAll()
Clears all entries from this index collection
|
IndexGroupScan |
getGroupScan()
If this IndexCollection exposes a single GroupScan, return the GroupScan instance.
|
IndexCollection.IndexCollectionType |
getIndexCollectionType()
Get the type of this index based on
IndexCollection.IndexCollectionType |
double |
getRows(org.apache.calcite.rex.RexNode indexCondition)
Get the estimated row count for a single index condition
|
boolean |
isColumnIndexed(SchemaPath path)
Check if the field name is the leading key of any of the indexes in this collection
|
boolean |
removeIndex(IndexDescriptor index)
Remove an index (identified by table name and index name) from the collection.
|
boolean |
supportsFullTextSearch()
Whether or not the index supports full-text search (to allow pushing down such filters)
|
boolean |
supportsIndexSelection()
Whether or not this index collection supports index selection (selecting an
appropriate index out of multiple candidates).
|
boolean |
supportsRowCountStats()
Whether or not the index supports getting row count statistics
|
forEach, iterator, spliterator
boolean addIndex(IndexDescriptor index)
boolean removeIndex(IndexDescriptor index)
void clearAll()
IndexCollection.IndexCollectionType getIndexCollectionType()
IndexCollection.IndexCollectionType
IndexCollection.IndexCollectionType
boolean supportsIndexSelection()
double getRows(org.apache.calcite.rex.RexNode indexCondition)
indexCondition
- The index condition (e.g index_col1 < 10 AND index_col2 = 'abc')boolean supportsRowCountStats()
boolean supportsFullTextSearch()
IndexGroupScan getGroupScan()
boolean isColumnIndexed(SchemaPath path)
path
- Copyright © 1970 The Apache Software Foundation. All rights reserved.