public class OLAPTableScan extends org.apache.calcite.rel.core.TableScan implements OLAPRel, EnumerableRel
OLAPRel.JavaImplementor, OLAPRel.OLAPImplementor, OLAPRel.RewriteImplementorEnumerableRel.Prefer, EnumerableRel.ResultCONVENTION, loggerFILTER_FACTORY, PROJECT_FACTORY| 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.metadata.RelMetadataQuery mq) |
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) |
void |
fixColumnRowTypeWithModel(org.apache.kylin.metadata.model.DataModelDesc model,
Map<String,String> aliasMap) |
String |
getAlias() |
ColumnRowType |
getColumnRowType()
get the row type of ColumnDesc
|
OLAPContext |
getContext()
get olap context
|
int[] |
getFields() |
OLAPTable |
getOlapTable() |
String |
getTableName() |
org.apache.kylin.metadata.model.TableRef |
getTableRef() |
boolean |
hasSubQuery()
whether has sub query
|
EnumerableRel.Result |
implement(EnumerableRelImplementor implementor,
EnumerableRel.Prefer pref) |
EnumerableRel |
implementEnumerable(List<EnumerableRel> inputs) |
void |
implementOLAP(OLAPRel.OLAPImplementor implementor) |
void |
implementRewrite(OLAPRel.RewriteImplementor implementor) |
org.apache.kylin.metadata.model.TblColRef |
makeRewriteColumn(String name) |
void |
register(org.apache.calcite.plan.RelOptPlanner planner) |
org.apache.calcite.plan.RelTraitSet |
replaceTraitSet(org.apache.calcite.plan.RelTrait trait)
replace RelTraitSet
|
void |
unfixColumnRowTypeWithModel() |
accept, estimateRowCount, getCollationList, getTable, identity, identity, projectaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, replaceInput, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, 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,
org.apache.calcite.rel.metadata.RelMetadataQuery mq)
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 String getAlias()
public org.apache.kylin.metadata.model.TableRef getTableRef()
public org.apache.kylin.metadata.model.TblColRef makeRewriteColumn(String name)
public void fixColumnRowTypeWithModel(org.apache.kylin.metadata.model.DataModelDesc model,
Map<String,String> aliasMap)
public void unfixColumnRowTypeWithModel()
public EnumerableRel implementEnumerable(List<EnumerableRel> inputs)
implementEnumerable in interface OLAPRelpublic EnumerableRel.Result implement(EnumerableRelImplementor implementor, EnumerableRel.Prefer pref)
implement in interface 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–2017 Apache Software Foundation. All rights reserved.