Package org.apache.calcite.rel.logical
Class LogicalExchange
- java.lang.Object
-
- org.apache.calcite.rel.AbstractRelNode
-
- org.apache.calcite.rel.SingleRel
-
- org.apache.calcite.rel.core.Exchange
-
- org.apache.calcite.rel.logical.LogicalExchange
-
- All Implemented Interfaces:
java.lang.Cloneable
,RelOptNode
,RelNode
public final class LogicalExchange extends Exchange
Sub-class ofExchange
not targeted at any particular engine or calling convention.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.rel.RelNode
RelNode.Context
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.rel.core.Exchange
distribution
-
Fields inherited from class org.apache.calcite.rel.AbstractRelNode
digest, id, rowType, traitSet
-
-
Constructor Summary
Constructors Modifier Constructor Description private
LogicalExchange(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDistribution distribution)
LogicalExchange(RelInput input)
Creates a LogicalExchange by parsing serialized output.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RelNode
accept(RelShuttle shuttle)
Accepts a visit from a shuttle.Exchange
copy(RelTraitSet traitSet, RelNode newInput, RelDistribution newDistribution)
static LogicalExchange
create(RelNode input, RelDistribution distribution)
Creates a LogicalExchange.-
Methods inherited from class org.apache.calcite.rel.core.Exchange
computeSelfCost, copy, explainTerms, getDistribution
-
Methods inherited from class org.apache.calcite.rel.SingleRel
childrenAccept, deriveRowType, estimateRowCount, getInput, getInputs, replaceInput
-
Methods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
-
-
-
-
Constructor Detail
-
LogicalExchange
private LogicalExchange(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RelDistribution distribution)
-
LogicalExchange
public LogicalExchange(RelInput input)
Creates a LogicalExchange by parsing serialized output.
-
-
Method Detail
-
create
public static LogicalExchange create(RelNode input, RelDistribution distribution)
Creates a LogicalExchange.- Parameters:
input
- Input relational expressiondistribution
- Distribution specification
-
copy
public Exchange copy(RelTraitSet traitSet, RelNode newInput, RelDistribution newDistribution)
-
accept
public RelNode accept(RelShuttle shuttle)
Description copied from interface:RelNode
Accepts a visit from a shuttle.- Specified by:
accept
in interfaceRelNode
- Overrides:
accept
in classAbstractRelNode
- Parameters:
shuttle
- Shuttle- Returns:
- A copy of this node incorporating changes made by the shuttle to this node's children
-
-