public class DrillIndexCollection extends AbstractIndexCollection
IndexCollection.IndexCollectionType
indexes
Constructor and Description |
---|
DrillIndexCollection(org.apache.calcite.rel.RelNode scanRel,
Set<DrillIndexDescriptor> indexes) |
Modifier and Type | Method and Description |
---|---|
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 |
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
|
addIndex, clearAll, isColumnIndexed, iterator, removeIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DrillIndexCollection(org.apache.calcite.rel.RelNode scanRel, Set<DrillIndexDescriptor> indexes)
public boolean supportsIndexSelection()
IndexCollection
supportsIndexSelection
in interface IndexCollection
supportsIndexSelection
in class AbstractIndexCollection
public boolean supportsRowCountStats()
IndexCollection
supportsRowCountStats
in interface IndexCollection
supportsRowCountStats
in class AbstractIndexCollection
public boolean supportsFullTextSearch()
IndexCollection
supportsFullTextSearch
in interface IndexCollection
supportsFullTextSearch
in class AbstractIndexCollection
public double getRows(org.apache.calcite.rex.RexNode indexCondition)
IndexCollection
getRows
in interface IndexCollection
getRows
in class AbstractIndexCollection
indexCondition
- The index condition (e.g index_col1 < 10 AND index_col2 = 'abc')public IndexGroupScan getGroupScan()
IndexCollection
public IndexCollection.IndexCollectionType getIndexCollectionType()
IndexCollection
IndexCollection.IndexCollectionType
IndexCollection.IndexCollectionType
Copyright © 1970 The Apache Software Foundation. All rights reserved.