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 scandouble
getRowCount
(org.apache.calcite.rex.RexNode condition, org.apache.calcite.rel.RelNode scanRel) Get the row count after applying theRexNode
conditionint
Get the column ordinal of the rowkey column from the output schema of the IndexGroupScanvoid
setColumns
(List<SchemaPath> columns) void
setParallelizationWidth
(int width) void
setRowCount
(org.apache.calcite.rex.RexNode condition, double count, double capRowCount) Set the artificial row count after applying theRexNode
condition Mainly used for debuggingvoid
setStatistics
(Statistics statistics) Set the statistics forIndexGroupScan
Methods inherited from interface org.apache.drill.common.graph.GraphValue
accept
Methods 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, usedMetastore
Methods inherited from interface org.apache.drill.exec.physical.base.HasAffinity
getDistributionAffinity, getOperatorAffinity
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods 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 theRexNode
condition 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 theRexNode
condition- 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:GroupScan
Returns a list of columns scanned by this group scan- Specified by:
getColumns
in interfaceGroupScan
-
setParallelizationWidth
void setParallelizationWidth(int width)
-