public abstract class Exchange extends SingleRel
SortExchangeRelNode.Context| Modifier and Type | Field and Description |
|---|---|
RelDistribution |
distribution |
digest, id, rowType, traitSet| Modifier | Constructor and Description |
|---|---|
protected |
Exchange(RelInput input)
Creates an Exchange by parsing serialized output.
|
protected |
Exchange(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RelDistribution distribution)
Creates an Exchange.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable RelOptCost |
computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq)
Returns the cost of this plan (not including children).
|
Exchange |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
abstract Exchange |
copy(RelTraitSet traitSet,
RelNode newInput,
RelDistribution newDistribution) |
RelWriter |
explainTerms(RelWriter pw)
Describes the inputs and attributes of this relational expression.
|
RelDistribution |
getDistribution()
Returns the distribution of the rows returned by this Exchange.
|
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInputaccept, accept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitexplain, fieldIsNullablepublic final RelDistribution distribution
protected Exchange(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDistribution distribution)
cluster - Cluster this relational expression belongs totraitSet - Trait setinput - Input relational expressiondistribution - Distribution specificationprotected Exchange(RelInput input)
public final Exchange 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 abstract Exchange copy(RelTraitSet traitSet, RelNode newInput, RelDistribution newDistribution)
public RelDistribution getDistribution()
public @Nullable RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq)
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getNonCumulativeCost(org.apache.calcite.rel.RelNode), which gives plugins a
chance to override the rel's default ideas about cost.
computeSelfCost in interface RelNodecomputeSelfCost in class AbstractRelNodeplanner - Planner for cost calculationmq - Metadata querypublic RelWriter explainTerms(RelWriter pw)
AbstractRelNodesuper.explainTerms, then call the
RelWriter.input(String, RelNode)
and
RelWriter.item(String, Object)
methods for each input and attribute.explainTerms in class SingleRelpw - Plan writerCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.