public class OLAPTableScan extends org.apache.calcite.rel.core.TableScan implements OLAPRel, org.apache.calcite.adapter.enumerable.EnumerableRel
OLAPRel.JavaImplementor, OLAPRel.OLAPImplementor, OLAPRel.RewriteImplementorCONVENTION, logger| Constructor and Description |
|---|
OLAPTableScan(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelOptTable table,
OLAPTable olapTable,
int[] fields) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.plan.RelOptCost |
computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner) |
org.apache.calcite.rel.RelNode |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.RelNode> inputs) |
org.apache.calcite.rel.type.RelDataType |
deriveRowType() |
org.apache.calcite.rel.RelWriter |
explainTerms(org.apache.calcite.rel.RelWriter pw) |
ColumnRowType |
getColumnRowType()
get the row type of ColumnDesc
|
OLAPContext |
getContext()
get olap context
|
int[] |
getFields() |
OLAPTable |
getOlapTable() |
String |
getTableName() |
boolean |
hasSubQuery()
whether has sub query
|
org.apache.calcite.adapter.enumerable.EnumerableRel.Result |
implement(org.apache.calcite.adapter.enumerable.EnumerableRelImplementor implementor,
org.apache.calcite.adapter.enumerable.EnumerableRel.Prefer pref) |
org.apache.calcite.adapter.enumerable.EnumerableRel |
implementEnumerable(List<org.apache.calcite.adapter.enumerable.EnumerableRel> inputs) |
void |
implementOLAP(OLAPRel.OLAPImplementor implementor) |
void |
implementRewrite(OLAPRel.RewriteImplementor implementor)
Because OLAPTableScan is reused for the same table, we can't use
this.context and have to use parent context
|
void |
register(org.apache.calcite.plan.RelOptPlanner planner) |
org.apache.calcite.plan.RelTraitSet |
replaceTraitSet(org.apache.calcite.plan.RelTrait trait)
replace RelTraitSet
|
accept, getCollationList, getRows, getTable, identity, identity, isKey, projectaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, explain, getChildExps, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRowType, getTraitSet, getVariablesStopped, isDistinct, isValid, metadata, onRegister, recomputeDigest, replaceInput, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, replaceInputpublic OLAPTableScan(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelOptTable table,
OLAPTable olapTable,
int[] fields)
public OLAPTable getOlapTable()
public String getTableName()
public int[] getFields()
public OLAPContext getContext()
OLAPRelgetContext in interface OLAPRelpublic 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.RelNodecopy in class org.apache.calcite.rel.AbstractRelNodepublic void register(org.apache.calcite.plan.RelOptPlanner planner)
register in interface org.apache.calcite.rel.RelNoderegister in class org.apache.calcite.rel.AbstractRelNodepublic org.apache.calcite.rel.type.RelDataType deriveRowType()
deriveRowType in class org.apache.calcite.rel.core.TableScanpublic org.apache.calcite.plan.RelOptCost computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner)
computeSelfCost in interface org.apache.calcite.rel.RelNodecomputeSelfCost in class org.apache.calcite.rel.core.TableScanpublic org.apache.calcite.rel.RelWriter explainTerms(org.apache.calcite.rel.RelWriter pw)
explainTerms in class org.apache.calcite.rel.core.TableScanpublic void implementOLAP(OLAPRel.OLAPImplementor implementor)
implementOLAP in interface OLAPRelpublic org.apache.calcite.adapter.enumerable.EnumerableRel implementEnumerable(List<org.apache.calcite.adapter.enumerable.EnumerableRel> inputs)
implementEnumerable in interface OLAPRelpublic org.apache.calcite.adapter.enumerable.EnumerableRel.Result implement(org.apache.calcite.adapter.enumerable.EnumerableRelImplementor implementor,
org.apache.calcite.adapter.enumerable.EnumerableRel.Prefer pref)
implement in interface org.apache.calcite.adapter.enumerable.EnumerableRelpublic ColumnRowType getColumnRowType()
OLAPRelgetColumnRowType in interface OLAPRelpublic void implementRewrite(OLAPRel.RewriteImplementor implementor)
implementRewrite in interface OLAPRelpublic boolean hasSubQuery()
OLAPRelhasSubQuery in interface OLAPRelpublic org.apache.calcite.plan.RelTraitSet replaceTraitSet(org.apache.calcite.plan.RelTrait trait)
OLAPRelreplaceTraitSet in interface OLAPRelCopyright © 2014–2015 Apache Software Foundation. All rights reserved.