Class DrillIndexDescriptor
java.lang.Object
org.apache.drill.exec.planner.index.DrillIndexDefinition
org.apache.drill.exec.planner.index.AbstractIndexDescriptor
org.apache.drill.exec.planner.index.DrillIndexDescriptor
- All Implemented Interfaces:
IndexDefinition,IndexDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.planner.index.IndexDefinition
IndexDefinition.IndexType -
Field Summary
Fields inherited from class org.apache.drill.exec.planner.index.DrillIndexDefinition
allIndexColumns, indexCollationContext, indexColumns, indexName, indexType, nonIndexColumns, nullsDirection, rowKeyColumns, tableName -
Constructor Summary
ConstructorsConstructorDescriptionDrillIndexDescriptor(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) -
Method Summary
Modifier and TypeMethodDescriptionGet the drill table corresponding to the index descriptorGet the functional index information associated with this index (Functional indexes are indexes involving expressions e.g CAST(a as INT).Get an instance of the group scan associated with this index descriptorGet the costing factors associated with the storage/format plugindoublegetRows(org.apache.calcite.rel.RelNode scan, org.apache.calcite.rex.RexNode indexCondition) Get the estimated row count for a single index conditionGet storage plugin name for this index descriptorvoidsetDrillTable(DrillTable table) Set the drill table corresponding to the indexvoidsetStorageName(String storageName) Set the storage plugin nameMethods inherited from class org.apache.drill.exec.planner.index.AbstractIndexDescriptor
getCost, isAsyncIndex, supportsFullTextSearch, supportsRowCountStatsMethods inherited from class org.apache.drill.exec.planner.index.DrillIndexDefinition
allColumnsIndexed, columnsInIndexFields, equals, getCollation, getCollationMap, getIndexColumnOrdinal, getIndexColumns, getIndexName, getIndexType, getNonIndexColumns, getNullsOrderingDirection, getRowKeyColumns, getTableName, hashCode, isCoveringIndex, pathExactIn, someColumnsIndexed, someColumnsInIndexFields, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.drill.exec.planner.index.IndexDefinition
allColumnsIndexed, getCollation, getCollationMap, getIndexColumnOrdinal, getIndexColumns, getIndexName, getIndexType, getNonIndexColumns, getNullsOrderingDirection, getRowKeyColumns, getTableName, isCoveringIndex, someColumnsIndexed
-
Constructor Details
-
DrillIndexDescriptor
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) -
DrillIndexDescriptor
-
-
Method Details
-
getRows
public double getRows(org.apache.calcite.rel.RelNode scan, org.apache.calcite.rex.RexNode indexCondition) Description copied from interface:IndexDescriptorGet the estimated row count for a single index condition- Specified by:
getRowsin interfaceIndexDescriptor- Overrides:
getRowsin classAbstractIndexDescriptor- Parameters:
scan- The rel node corresponding to the primary tableindexCondition- The index condition (e.g index_col1 invalid input: '<' 10 AND index_col2 = 'abc')- Returns:
- The estimated row count
-
getIndexGroupScan
Description copied from interface:IndexDescriptorGet an instance of the group scan associated with this index descriptor- Specified by:
getIndexGroupScanin interfaceIndexDescriptor- Overrides:
getIndexGroupScanin classAbstractIndexDescriptor- Returns:
- An instance of group scan for this index
-
setStorageName
Set the storage plugin name- Parameters:
storageName-
-
getStorageName
Get storage plugin name for this index descriptor- Returns:
- name of the storage plugin
-
setDrillTable
Set the drill table corresponding to the index- Parameters:
table-
-
getDrillTable
Get the drill table corresponding to the index descriptor- Returns:
- instance of DrillTable
-
getFunctionalInfo
Description copied from interface:IndexDescriptorGet the functional index information associated with this index (Functional indexes are indexes involving expressions e.g CAST(a as INT). -
getPluginCostModel
Description copied from interface:IndexDescriptorGet the costing factors associated with the storage/format plugin
-