Package io.trino.sql.planner.plan
Class SetOperationNode
- java.lang.Object
-
- io.trino.sql.planner.plan.PlanNode
-
- io.trino.sql.planner.plan.SetOperationNode
-
- Direct Known Subclasses:
ExceptNode,IntersectNode,UnionNode
@Immutable public abstract class SetOperationNode extends PlanNode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSetOperationNode(PlanNodeId id, List<PlanNode> sources, com.google.common.collect.ListMultimap<Symbol,Symbol> outputToInputs, List<Symbol> outputs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Symbol>getOutputSymbols()List<PlanNode>getSources()com.google.common.collect.ListMultimap<Symbol,Symbol>getSymbolMapping()com.google.common.collect.Multimap<Symbol,SymbolReference>outputSymbolMap(int sourceIndex)Returns the input to output symbol mapping for the given source channel.List<Symbol>sourceOutputLayout(int sourceIndex)Map<Symbol,SymbolReference>sourceSymbolMap(int sourceIndex)Returns the output to input symbol mapping for the given source channel-
Methods inherited from class io.trino.sql.planner.plan.PlanNode
accept, getId, replaceChildren
-
-
-
-
Method Detail
-
getSources
public List<PlanNode> getSources()
- Specified by:
getSourcesin classPlanNode
-
getOutputSymbols
public List<Symbol> getOutputSymbols()
- Specified by:
getOutputSymbolsin classPlanNode
-
sourceSymbolMap
public Map<Symbol,SymbolReference> sourceSymbolMap(int sourceIndex)
Returns the output to input symbol mapping for the given source channel
-
outputSymbolMap
public com.google.common.collect.Multimap<Symbol,SymbolReference> outputSymbolMap(int sourceIndex)
Returns the input to output symbol mapping for the given source channel. A single input symbol can map to multiple output symbols, thus requiring a Multimap.
-
-