public class DrillIndexDescriptor extends AbstractIndexDescriptor
IndexDefinition.IndexTypeallIndexColumns, indexCollationContext, indexColumns, indexName, indexType, nonIndexColumns, nullsDirection, rowKeyColumns, tableName| Constructor and Description |
|---|
DrillIndexDescriptor(DrillIndexDefinition def) |
DrillIndexDescriptor(List<LogicalExpression> indexCols,
CollationContext indexCollationContext,
List<LogicalExpression> nonIndexCols,
List<LogicalExpression> rowKeyColumns,
String indexName,
String tableName,
IndexDefinition.IndexType type,
org.apache.calcite.rel.RelFieldCollation.NullDirection nullsDirection) |
| Modifier and Type | Method and Description |
|---|---|
DrillTable |
getDrillTable()
Get the drill table corresponding to the index descriptor
|
FunctionalIndexInfo |
getFunctionalInfo()
Get the functional index information associated with this index (Functional indexes are
indexes involving expressions e.g CAST(a as INT).
|
IndexGroupScan |
getIndexGroupScan()
Get an instance of the group scan associated with this index descriptor
|
PluginCost |
getPluginCostModel()
Get the costing factors associated with the storage/format plugin
|
double |
getRows(org.apache.calcite.rel.RelNode scan,
org.apache.calcite.rex.RexNode indexCondition)
Get the estimated row count for a single index condition
|
String |
getStorageName()
Get storage plugin name for this index descriptor
|
void |
setDrillTable(DrillTable table)
Set the drill table corresponding to the index
|
void |
setStorageName(String storageName)
Set the storage plugin name
|
getCost, isAsyncIndex, supportsFullTextSearch, supportsRowCountStatsallColumnsIndexed, columnsInIndexFields, equals, getCollation, getCollationMap, getIndexColumnOrdinal, getIndexColumns, getIndexName, getIndexType, getNonIndexColumns, getNullsOrderingDirection, getRowKeyColumns, getTableName, hashCode, isCoveringIndex, pathExactIn, someColumnsIndexed, someColumnsInIndexFields, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitallColumnsIndexed, getCollation, getCollationMap, getIndexColumnOrdinal, getIndexColumns, getIndexName, getIndexType, getNonIndexColumns, getNullsOrderingDirection, getRowKeyColumns, getTableName, isCoveringIndex, someColumnsIndexedpublic DrillIndexDescriptor(List<LogicalExpression> indexCols, CollationContext indexCollationContext, List<LogicalExpression> nonIndexCols, List<LogicalExpression> rowKeyColumns, String indexName, String tableName, IndexDefinition.IndexType type, org.apache.calcite.rel.RelFieldCollation.NullDirection nullsDirection)
public DrillIndexDescriptor(DrillIndexDefinition def)
public double getRows(org.apache.calcite.rel.RelNode scan,
org.apache.calcite.rex.RexNode indexCondition)
IndexDescriptorgetRows in interface IndexDescriptorgetRows in class AbstractIndexDescriptorscan - The rel node corresponding to the primary tableindexCondition - The index condition (e.g index_col1 < 10 AND index_col2 = 'abc')public IndexGroupScan getIndexGroupScan()
IndexDescriptorgetIndexGroupScan in interface IndexDescriptorgetIndexGroupScan in class AbstractIndexDescriptorpublic void setStorageName(String storageName)
storageName - public String getStorageName()
public void setDrillTable(DrillTable table)
table - public DrillTable getDrillTable()
public FunctionalIndexInfo getFunctionalInfo()
IndexDescriptorpublic PluginCost getPluginCostModel()
IndexDescriptorCopyright © 2021 The Apache Software Foundation. All rights reserved.