Class MailboxSendOperator
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.MultiStageOperator
-
- org.apache.pinot.query.runtime.operator.MailboxSendOperator
-
- All Implemented Interfaces:
AutoCloseable,Operator<TransferableBlock>
public class MailboxSendOperator extends MultiStageOperator
ThisMailboxSendOperatoris created to sendTransferableBlocks to the receiving end. TODO: Add support to sort the data prior to sending if sorting is enabled
-
-
Field Summary
Fields Modifier and Type Field Description static Set<org.apache.calcite.rel.RelDistribution.Type>SUPPORTED_EXCHANGE_TYPES-
Fields inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
_context, _opChainStats, _operatorId
-
-
Constructor Summary
Constructors Constructor Description MailboxSendOperator(OpChainExecutionContext context, MultiStageOperator sourceOperator, org.apache.calcite.rel.RelDistribution.Type exchangeType, KeySelector<Object[],Object[]> keySelector, List<RexExpression> collationKeys, List<org.apache.calcite.rel.RelFieldCollation.Direction> collationDirections, boolean isSortOnSender, int receiverStageId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(Throwable t)voidclose()List<MultiStageOperator>getChildOperators()protected TransferableBlockgetNextBlock()protected booleanshouldCollectStats()This method is overridden to return true because this operator is last in the chain and needs to collect execution time statsStringtoExplainString()-
Methods inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
getOperatorId, nextBlock
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.core.common.Operator
explainPlan, getExecutionStatistics, getIndexSegment, prepareForExplainPlan
-
-
-
-
Field Detail
-
SUPPORTED_EXCHANGE_TYPES
public static final Set<org.apache.calcite.rel.RelDistribution.Type> SUPPORTED_EXCHANGE_TYPES
-
-
Constructor Detail
-
MailboxSendOperator
public MailboxSendOperator(OpChainExecutionContext context, MultiStageOperator sourceOperator, org.apache.calcite.rel.RelDistribution.Type exchangeType, KeySelector<Object[],Object[]> keySelector, @Nullable List<RexExpression> collationKeys, @Nullable List<org.apache.calcite.rel.RelFieldCollation.Direction> collationDirections, boolean isSortOnSender, int receiverStageId)
-
-
Method Detail
-
getChildOperators
public List<MultiStageOperator> getChildOperators()
- Specified by:
getChildOperatorsin interfaceOperator<TransferableBlock>- Overrides:
getChildOperatorsin classMultiStageOperator
-
toExplainString
@Nullable public String toExplainString()
-
getNextBlock
protected TransferableBlock getNextBlock()
- Specified by:
getNextBlockin classMultiStageOperator
-
shouldCollectStats
protected boolean shouldCollectStats()
This method is overridden to return true because this operator is last in the chain and needs to collect execution time stats- Overrides:
shouldCollectStatsin classMultiStageOperator
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classMultiStageOperator
-
cancel
public void cancel(Throwable t)
- Overrides:
cancelin classMultiStageOperator
-
-