public final class MultiJoin extends AbstractRelNode
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> |
joinFieldRefCountsMap |
digest, id, traitSet| Constructor and Description |
|---|
MultiJoin(RelOptCluster cluster,
List<RelNode> inputs,
RexNode joinFilter,
RelDataType rowType,
boolean isFullOuterJoin,
List<RexNode> outerJoinConditions,
List<JoinRelType> joinTypes,
List<ImmutableBitSet> projFields,
com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> joinFieldRefCountsMap,
RexNode postJoinFilter)
Constructs a MultiJoin.
|
| Modifier and Type | Method and Description |
|---|---|
RelNode |
accept(RexShuttle shuttle)
Accepts a visit from a shuttle.
|
RelNode |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
RelDataType |
deriveRowType() |
RelWriter |
explainTerms(RelWriter pw)
Describes the inputs and attributes of this relational expression.
|
List<RexNode> |
getChildExps()
Returns a list of this relational expression's child expressions.
|
Map<Integer,int[]> |
getCopyJoinFieldRefCountsMap() |
List<RelNode> |
getInputs()
Returns an array of this relational expression's inputs.
|
com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> |
getJoinFieldRefCountsMap() |
RexNode |
getJoinFilter() |
List<JoinRelType> |
getJoinTypes() |
List<RexNode> |
getOuterJoinConditions() |
RexNode |
getPostJoinFilter() |
List<ImmutableBitSet> |
getProjFields() |
boolean |
isFullOuterJoin() |
void |
replaceInput(int ordinalInParent,
RelNode p)
Replaces the
ordinalInParentth input. |
accept, childrenAccept, 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, toStringpublic final com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> joinFieldRefCountsMap
public MultiJoin(RelOptCluster cluster, List<RelNode> inputs, RexNode joinFilter, RelDataType rowType, boolean isFullOuterJoin, List<RexNode> outerJoinConditions, List<JoinRelType> joinTypes, List<ImmutableBitSet> projFields, com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> joinFieldRefCountsMap, RexNode postJoinFilter)
cluster - cluster that join belongs toinputs - inputs into this multi-joinjoinFilter - join filter applicable to this join noderowType - row type of the join result of this nodeisFullOuterJoin - true if the join is a full outer joinouterJoinConditions - outer join condition associated with each join
input, if the input is null-generating in a
left or right outer join; null otherwisejoinTypes - the join type corresponding to each input; if
an input is null-generating in a left or right
outer join, the entry indicates the type of
outer join; otherwise, the entry is set to
INNERprojFields - fields that will be projected from each input;
if null, projection information is not
available yet so it's assumed that all fields
from the input are projectedjoinFieldRefCountsMap - counters of the number of times each field
is referenced in join conditions, indexed by
the input #postJoinFilter - filter to be applied after the joins arepublic void replaceInput(int ordinalInParent,
RelNode p)
RelNodeordinalInParentth input. You must
override this method if you override RelNode.getInputs().replaceInput in interface RelNodereplaceInput in class AbstractRelNodeordinalInParent - Position of the child input, 0 is the firstp - New node that should be put at position ordinalInParentpublic RelNode copy(RelTraitSet traitSet, List<RelNode> inputs)
RelNodeSub-classes with other important attributes are encouraged to create variants of this method with more parameters.
copy in interface RelNodecopy in class AbstractRelNodetraitSet - Trait setinputs - Inputspublic RelWriter explainTerms(RelWriter pw)
AbstractRelNodesuper.explainTerms, then call the
RelWriterImpl.input(String, RelNode)
and
RelWriterImpl.item(String, Object)
methods for each input and attribute.explainTerms in class AbstractRelNodepw - Plan writerpublic RelDataType deriveRowType()
deriveRowType in class AbstractRelNodepublic List<RelNode> getInputs()
RelNodenull.getInputs in interface RelOptNodegetInputs in interface RelNodegetInputs in class AbstractRelNodepublic List<RexNode> getChildExps()
RelNodeRelNode.getInputs().
The caller should treat the list as unmodifiable; typical
implementations will return an immutable list. If there are no
child expressions, returns an empty list, not null.
getChildExps in interface RelNodegetChildExps in class AbstractRelNodeRelNode.accept(org.apache.calcite.rex.RexShuttle)public RelNode accept(RexShuttle shuttle)
RelNodeaccept in interface RelNodeaccept in class AbstractRelNodeshuttle - Shuttlepublic RexNode getJoinFilter()
public boolean isFullOuterJoin()
public List<RexNode> getOuterJoinConditions()
public List<JoinRelType> getJoinTypes()
public List<ImmutableBitSet> getProjFields()
public com.google.common.collect.ImmutableMap<Integer,ImmutableIntList> getJoinFieldRefCountsMap()
public Map<Integer,int[]> getCopyJoinFieldRefCountsMap()
public RexNode getPostJoinFilter()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.