Interface IndexGroupScan
- All Superinterfaces:
FragmentLeaf,GraphValue<PhysicalOperator>,GroupScan,HasAffinity,Iterable<PhysicalOperator>,Leaf,PhysicalOperator,Scan
An IndexGroupScan operator represents the scan associated with an Index.
-
Field Summary
Fields inherited from interface org.apache.drill.exec.physical.base.GroupScan
ALL_COLUMNS -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of columns scanned by this group scandoublegetRowCount(org.apache.calcite.rex.RexNode condition, org.apache.calcite.rel.RelNode scanRel) Get the row count after applying theRexNodeconditionintGet the column ordinal of the rowkey column from the output schema of the IndexGroupScanvoidsetColumns(List<SchemaPath> columns) voidsetParallelizationWidth(int width) voidsetRowCount(org.apache.calcite.rex.RexNode condition, double count, double capRowCount) Set the artificial row count after applying theRexNodecondition Mainly used for debuggingvoidsetStatistics(Statistics statistics) Set the statistics forIndexGroupScanMethods inherited from interface org.apache.drill.common.graph.GraphValue
acceptMethods inherited from interface org.apache.drill.exec.physical.base.GroupScan
applyAssignments, applyFilter, applyLimit, canPushdownProjects, clone, enforceWidth, getAnalyzeInfoProvider, getColumnValueCount, getDigest, getFiles, getFilter, getMaxParallelizationWidth, getMetadataProvider, getMinParallelizationWidth, getPartitionColumns, getScanStats, getScanStats, getSelectionRoot, getSpecificScan, getTableMetadata, hasFiles, isDistributed, supportsFilterPushDown, supportsLimitPushdown, supportsPartitionFilterPushdown, usedMetastoreMethods inherited from interface org.apache.drill.exec.physical.base.HasAffinity
getDistributionAffinity, getOperatorAffinityMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
accept, getCost, getInitialAllocation, getMaxAllocation, getNewWithChildren, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
-
Method Details
-
getRowKeyOrdinal
int getRowKeyOrdinal()Get the column ordinal of the rowkey column from the output schema of the IndexGroupScan- Returns:
- column ordinal number
-
setRowCount
void setRowCount(org.apache.calcite.rex.RexNode condition, double count, double capRowCount) Set the artificial row count after applying theRexNodecondition Mainly used for debugging- Parameters:
condition- filter to applycount- right index row countcapRowCount- row count limit
-
getRowCount
double getRowCount(org.apache.calcite.rex.RexNode condition, org.apache.calcite.rel.RelNode scanRel) Get the row count after applying theRexNodecondition- Parameters:
condition- filter to applyscanRel- the current scan rel- Returns:
- row count post filtering
-
setStatistics
Set the statistics forIndexGroupScan- Parameters:
statistics- which is necessary for index planning
-
setColumns
-
getColumns
List<SchemaPath> getColumns()Description copied from interface:GroupScanReturns a list of columns scanned by this group scan- Specified by:
getColumnsin interfaceGroupScan
-
setParallelizationWidth
void setParallelizationWidth(int width)
-