Package io.trino.sql.planner.plan
Class ExchangeNode
java.lang.Object
io.trino.sql.planner.plan.PlanNode
io.trino.sql.planner.plan.ExchangeNode
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExchangeNode(PlanNodeId id, ExchangeNode.Type type, ExchangeNode.Scope scope, PartitioningScheme partitioningScheme, List<PlanNode> sources, List<List<Symbol>> inputs, Optional<OrderingScheme> orderingScheme) -
Method Summary
Modifier and TypeMethodDescription<R,C> R accept(PlanVisitor<R, C> visitor, C context) static ExchangeNodegatheringExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child) getScope()getType()static ExchangeNodemergingExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, OrderingScheme orderingScheme) static ExchangeNodepartitionedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, PartitioningScheme partitioningScheme) static ExchangeNodepartitionedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, List<Symbol> partitioningColumns, Optional<Symbol> hashColumns) static ExchangeNodepartitionedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, List<Symbol> partitioningColumns, Optional<Symbol> hashColumns, boolean replicateNullsAndAny) replaceChildren(List<PlanNode> newChildren) static ExchangeNodereplicatedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child) static ExchangeNoderoundRobinExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child)
-
Constructor Details
-
ExchangeNode
public ExchangeNode(PlanNodeId id, ExchangeNode.Type type, ExchangeNode.Scope scope, PartitioningScheme partitioningScheme, List<PlanNode> sources, List<List<Symbol>> inputs, Optional<OrderingScheme> orderingScheme)
-
-
Method Details
-
partitionedExchange
public static ExchangeNode partitionedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, List<Symbol> partitioningColumns, Optional<Symbol> hashColumns) -
partitionedExchange
public static ExchangeNode partitionedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, List<Symbol> partitioningColumns, Optional<Symbol> hashColumns, boolean replicateNullsAndAny) -
partitionedExchange
public static ExchangeNode partitionedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, PartitioningScheme partitioningScheme) -
replicatedExchange
public static ExchangeNode replicatedExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child) -
gatheringExchange
public static ExchangeNode gatheringExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child) -
roundRobinExchange
public static ExchangeNode roundRobinExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child) -
mergingExchange
public static ExchangeNode mergingExchange(PlanNodeId id, ExchangeNode.Scope scope, PlanNode child, OrderingScheme orderingScheme) -
getType
-
getScope
-
getSources
- Specified by:
getSourcesin classPlanNode
-
getOutputSymbols
- Specified by:
getOutputSymbolsin classPlanNode
-
getPartitioningScheme
-
getOrderingScheme
-
getInputs
-
accept
-
replaceChildren
- Specified by:
replaceChildrenin classPlanNode
-