public class OLAPJoinRel extends EnumerableJoin implements OLAPRel
OLAPRel.JavaImplementor, OLAPRel.OLAPImplementor, OLAPRel.RewriteImplementororg.apache.calcite.rel.RelNode.ContextEnumerableRel.Prefer, EnumerableRel.Result| Modifier and Type | Field and Description |
|---|---|
protected ColumnRowType |
columnRowType |
protected int |
columnRowTypeLeftRightCut |
protected static Constructor<EnumerableJoin> |
constr |
protected OLAPContext |
context |
protected boolean |
hasSubQuery |
protected boolean |
isTopJoin |
CONVENTION, loggerFILTER_FACTORY, PROJECT_FACTORY| Constructor and Description |
|---|
OLAPJoinRel(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traits,
org.apache.calcite.rel.RelNode left,
org.apache.calcite.rel.RelNode right,
org.apache.calcite.rex.RexNode condition,
org.apache.calcite.util.ImmutableIntList leftKeys,
org.apache.calcite.util.ImmutableIntList rightKeys,
Set<org.apache.calcite.rel.core.CorrelationId> variablesSet,
org.apache.calcite.rel.core.JoinRelType joinType) |
| Modifier and Type | Method and Description |
|---|---|
protected ColumnRowType |
buildColumnRowType() |
protected org.apache.kylin.metadata.model.JoinDesc |
buildJoin(org.apache.calcite.rex.RexCall condition) |
org.apache.calcite.plan.RelOptCost |
computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner,
org.apache.calcite.rel.metadata.RelMetadataQuery mq) |
EnumerableJoin |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rex.RexNode conditionExpr,
org.apache.calcite.rel.RelNode left,
org.apache.calcite.rel.RelNode right,
org.apache.calcite.rel.core.JoinRelType joinType,
boolean semiJoinDone) |
double |
estimateRowCount(org.apache.calcite.rel.metadata.RelMetadataQuery mq) |
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
|
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) |
protected boolean |
isParentMerelyPermutation(OLAPRel.OLAPImplementor implementor) |
org.apache.calcite.plan.RelTraitSet |
replaceTraitSet(org.apache.calcite.plan.RelTrait trait)
replace RelTraitSet
|
protected void |
translateJoinColumn(org.apache.calcite.rex.RexNode condition,
Map<org.apache.kylin.metadata.model.TblColRef,org.apache.kylin.metadata.model.TblColRef> joinCol) |
create, createanalyzeCondition, getLeftKeys, getRightKeysaccept, copy, createJoinType, deriveJoinRowType, deriveRowType, estimateJoinedRows, getChildExps, getCondition, getJoinType, getSystemFieldList, getVariablesSet, isSemiJoinDone, isValidchildrenAccept, getInputs, getLeft, getRight, replaceInputaccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, copy, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInputprotected OLAPContext context
protected ColumnRowType columnRowType
protected int columnRowTypeLeftRightCut
protected boolean isTopJoin
protected boolean hasSubQuery
protected static Constructor<EnumerableJoin> constr
public OLAPJoinRel(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traits,
org.apache.calcite.rel.RelNode left,
org.apache.calcite.rel.RelNode right,
org.apache.calcite.rex.RexNode condition,
org.apache.calcite.util.ImmutableIntList leftKeys,
org.apache.calcite.util.ImmutableIntList rightKeys,
Set<org.apache.calcite.rel.core.CorrelationId> variablesSet,
org.apache.calcite.rel.core.JoinRelType joinType)
throws org.apache.calcite.rel.InvalidRelException
org.apache.calcite.rel.InvalidRelExceptionpublic EnumerableJoin copy(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rex.RexNode conditionExpr, org.apache.calcite.rel.RelNode left, org.apache.calcite.rel.RelNode right, org.apache.calcite.rel.core.JoinRelType joinType, boolean semiJoinDone)
copy in class EnumerableJoinpublic 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 EnumerableJoinpublic double estimateRowCount(org.apache.calcite.rel.metadata.RelMetadataQuery mq)
estimateRowCount in interface org.apache.calcite.rel.RelNodeestimateRowCount in class org.apache.calcite.rel.core.Joinprotected boolean isParentMerelyPermutation(OLAPRel.OLAPImplementor implementor)
public void implementOLAP(OLAPRel.OLAPImplementor implementor)
implementOLAP in interface OLAPRelprotected ColumnRowType buildColumnRowType()
protected org.apache.kylin.metadata.model.JoinDesc buildJoin(org.apache.calcite.rex.RexCall condition)
protected void translateJoinColumn(org.apache.calcite.rex.RexNode condition,
Map<org.apache.kylin.metadata.model.TblColRef,org.apache.kylin.metadata.model.TblColRef> joinCol)
public EnumerableRel implementEnumerable(List<EnumerableRel> inputs)
implementEnumerable in interface OLAPRelpublic EnumerableRel.Result implement(EnumerableRelImplementor implementor, EnumerableRel.Prefer pref)
implement in interface EnumerableRelimplement in class EnumerableJoinpublic ColumnRowType getColumnRowType()
OLAPRelgetColumnRowType in interface OLAPRelpublic void implementRewrite(OLAPRel.RewriteImplementor implementor)
implementRewrite in interface OLAPRelpublic OLAPContext getContext()
OLAPRelgetContext in interface OLAPRelpublic boolean hasSubQuery()
OLAPRelhasSubQuery in interface OLAPRelpublic org.apache.calcite.plan.RelTraitSet replaceTraitSet(org.apache.calcite.plan.RelTrait trait)
OLAPRelreplaceTraitSet in interface OLAPRelpublic org.apache.calcite.rel.RelWriter explainTerms(org.apache.calcite.rel.RelWriter pw)
explainTerms in class org.apache.calcite.rel.core.JoinCopyright © 2014–2018 Apache Software Foundation. All rights reserved.