public class DrillIndexDescriptor extends AbstractIndexDescriptor
IndexDefinition.IndexType
allIndexColumns, 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, supportsRowCountStats
allColumnsIndexed, columnsInIndexFields, equals, getCollation, getCollationMap, getIndexColumnOrdinal, getIndexColumns, getIndexName, getIndexType, getNonIndexColumns, getNullsOrderingDirection, getRowKeyColumns, getTableName, hashCode, isCoveringIndex, pathExactIn, someColumnsIndexed, someColumnsInIndexFields, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allColumnsIndexed, getCollation, getCollationMap, getIndexColumnOrdinal, getIndexColumns, getIndexName, getIndexType, getNonIndexColumns, getNullsOrderingDirection, getRowKeyColumns, getTableName, isCoveringIndex, someColumnsIndexed
public 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)
IndexDescriptor
getRows
in interface IndexDescriptor
getRows
in class AbstractIndexDescriptor
scan
- The rel node corresponding to the primary tableindexCondition
- The index condition (e.g index_col1 < 10 AND index_col2 = 'abc')public IndexGroupScan getIndexGroupScan()
IndexDescriptor
getIndexGroupScan
in interface IndexDescriptor
getIndexGroupScan
in class AbstractIndexDescriptor
public void setStorageName(String storageName)
storageName
- public String getStorageName()
public void setDrillTable(DrillTable table)
table
- public DrillTable getDrillTable()
public FunctionalIndexInfo getFunctionalInfo()
IndexDescriptor
public PluginCost getPluginCostModel()
IndexDescriptor
Copyright © 1970 The Apache Software Foundation. All rights reserved.