Class UnionOperator
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.MultiStageOperator
-
- org.apache.pinot.query.runtime.operator.SetOperator
-
- org.apache.pinot.query.runtime.operator.UnionOperator
-
- All Implemented Interfaces:
AutoCloseable,Operator<TransferableBlock>
public class UnionOperator extends SetOperator
Union operator for UNION ALL queries.
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.query.runtime.operator.SetOperator
_rightRowSet
-
Fields inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
_context, _opChainStats, _operatorId
-
-
Constructor Summary
Constructors Constructor Description UnionOperator(OpChainExecutionContext opChainExecutionContext, List<MultiStageOperator> upstreamOperators, DataSchema dataSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransferableBlockgetNextBlock()protected booleanhandleRowMatched(Object[] row)Returns true if the row is matched.StringtoExplainString()-
Methods inherited from class org.apache.pinot.query.runtime.operator.SetOperator
constructResultBlockSet, constructRightBlockSet, explainPlan, getChildOperators, getExecutionStatistics, getIndexSegment, prepareForExplainPlan
-
Methods inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
cancel, close, getOperatorId, nextBlock, shouldCollectStats
-
-
-
-
Constructor Detail
-
UnionOperator
public UnionOperator(OpChainExecutionContext opChainExecutionContext, List<MultiStageOperator> upstreamOperators, DataSchema dataSchema)
-
-
Method Detail
-
toExplainString
@Nullable public String toExplainString()
-
getNextBlock
protected TransferableBlock getNextBlock()
- Overrides:
getNextBlockin classSetOperator
-
handleRowMatched
protected boolean handleRowMatched(Object[] row)
Description copied from class:SetOperatorReturns true if the row is matched. Also updates the right row set based on the Operator.- Specified by:
handleRowMatchedin classSetOperator- Returns:
- true if the row is matched.
-
-