public class HiveTableScan extends org.apache.calcite.rel.core.TableScan implements HiveRelNode
Additional operations might be applied, using the "find" or "aggregate" methods.
Modifier and Type | Class and Description |
---|---|
static class |
HiveTableScan.HiveTableScanTrait |
HiveRelNode.Implementor
CONVENTION
Constructor and Description |
---|
HiveTableScan(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
RelOptHiveTable table,
String alias,
String concatQbIDAlias,
boolean useQBIdInDigest,
boolean insideView)
Creates a HiveTableScan.
|
HiveTableScan(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
RelOptHiveTable table,
String alias,
String concatQbIDAlias,
boolean useQBIdInDigest,
boolean insideView,
HiveTableScan.HiveTableScanTrait tableScanTrait) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rel.RelNode |
accept(org.apache.calcite.rel.RelShuttle shuttle) |
HiveTableScan |
copy(org.apache.calcite.rel.type.RelDataType newRowtype)
Copy TableScan operator with a new Row Schema.
|
org.apache.calcite.rel.RelNode |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.RelNode> inputs) |
HiveTableScan |
copyIncludingTable(org.apache.calcite.rel.type.RelDataType newRowtype)
Copy TableScan operator with a new Row Schema.
|
double |
estimateRowCount(org.apache.calcite.rel.metadata.RelMetadataQuery mq) |
org.apache.calcite.rel.RelWriter |
explainTerms(org.apache.calcite.rel.RelWriter pw) |
List<ColStatistics> |
getColStat(List<Integer> projIndxLst) |
String |
getConcatQbIDAlias() |
List<Integer> |
getNeededColIndxsFrmReloptHT() |
Set<Integer> |
getPartOrVirtualCols() |
org.apache.calcite.rel.type.RelDataType |
getPrunedRowType() |
String |
getTableAlias() |
HiveTableScan.HiveTableScanTrait |
getTableScanTrait() |
Set<Integer> |
getVirtualCols() |
void |
implement(HiveRelNode.Implementor implementor) |
boolean |
isInsideView() |
org.apache.calcite.rel.RelNode |
project(org.apache.calcite.util.ImmutableBitSet fieldsUsed,
Set<org.apache.calcite.rel.type.RelDataTypeField> extraFields,
org.apache.calcite.tools.RelBuilder relBuilder) |
void |
register(org.apache.calcite.plan.RelOptPlanner planner) |
HiveTableScan |
setTableScanTrait(HiveTableScan.HiveTableScanTrait tableScanTrait) |
computeSelfCost, deriveRowType, getHints, getTable, identity, identity
accept, childrenAccept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, replaceInput, sole, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, deepEquals, deepHashCode, explain, getConvention, getCorrelVariable, getDigest, getExpectedInputRowType, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTable, getVariablesSet, isEnforcer, isValid, metadata, onRegister, recomputeDigest, replaceInput
public HiveTableScan(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, RelOptHiveTable table, String alias, String concatQbIDAlias, boolean useQBIdInDigest, boolean insideView)
cluster
- ClustertraitSet
- Traitstable
- Tabletable
- HiveDB tablepublic HiveTableScan(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, RelOptHiveTable table, String alias, String concatQbIDAlias, boolean useQBIdInDigest, boolean insideView, HiveTableScan.HiveTableScanTrait tableScanTrait)
public String getTableAlias()
public String getConcatQbIDAlias()
public org.apache.calcite.rel.RelNode copy(org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.RelNode> inputs)
copy
in interface org.apache.calcite.rel.RelNode
copy
in class org.apache.calcite.rel.AbstractRelNode
public HiveTableScan copy(org.apache.calcite.rel.type.RelDataType newRowtype)
newRowtype
- public HiveTableScan setTableScanTrait(HiveTableScan.HiveTableScanTrait tableScanTrait)
public HiveTableScan copyIncludingTable(org.apache.calcite.rel.type.RelDataType newRowtype)
public org.apache.calcite.rel.RelWriter explainTerms(org.apache.calcite.rel.RelWriter pw)
explainTerms
in class org.apache.calcite.rel.core.TableScan
public void register(org.apache.calcite.plan.RelOptPlanner planner)
register
in interface org.apache.calcite.rel.RelNode
register
in class org.apache.calcite.rel.AbstractRelNode
public void implement(HiveRelNode.Implementor implementor)
implement
in interface HiveRelNode
public double estimateRowCount(org.apache.calcite.rel.metadata.RelMetadataQuery mq)
estimateRowCount
in interface org.apache.calcite.rel.RelNode
estimateRowCount
in class org.apache.calcite.rel.core.TableScan
public List<ColStatistics> getColStat(List<Integer> projIndxLst)
public org.apache.calcite.rel.RelNode project(org.apache.calcite.util.ImmutableBitSet fieldsUsed, Set<org.apache.calcite.rel.type.RelDataTypeField> extraFields, org.apache.calcite.tools.RelBuilder relBuilder)
project
in class org.apache.calcite.rel.core.TableScan
public org.apache.calcite.rel.type.RelDataType getPrunedRowType()
public boolean isInsideView()
public HiveTableScan.HiveTableScanTrait getTableScanTrait()
public org.apache.calcite.rel.RelNode accept(org.apache.calcite.rel.RelShuttle shuttle)
accept
in interface org.apache.calcite.rel.RelNode
accept
in class org.apache.calcite.rel.core.TableScan
Copyright © 2022 The Apache Software Foundation. All rights reserved.