Class SortedMailboxReceiveOperator
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.MultiStageOperator
-
- org.apache.pinot.query.runtime.operator.BaseMailboxReceiveOperator
-
- org.apache.pinot.query.runtime.operator.SortedMailboxReceiveOperator
-
- All Implemented Interfaces:
AutoCloseable,Operator<TransferableBlock>
public class SortedMailboxReceiveOperator extends BaseMailboxReceiveOperator
ThisSortedMailboxReceiveOperatorreceives data from aReceivingMailboxand serve it out from theMultiStageOperator.getNextBlock()()} API in a sorted manner. TODO: Once sorting on theMailboxSendOperatoris available, modify this to use a k-way merge instead of resorting via the PriorityQueue.
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.query.runtime.operator.BaseMailboxReceiveOperator
_exchangeType, _mailboxIds, _mailboxService
-
Fields inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
_context, _opChainStats, _operatorId
-
-
Constructor Summary
Constructors Constructor Description SortedMailboxReceiveOperator(OpChainExecutionContext context, org.apache.calcite.rel.RelDistribution.Type exchangeType, DataSchema dataSchema, List<RexExpression> collationKeys, List<org.apache.calcite.rel.RelFieldCollation.Direction> collationDirections, List<org.apache.calcite.rel.RelFieldCollation.NullDirection> collationNullDirections, boolean isSortOnSender, int senderStageId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(Throwable t)voidclose()protected TransferableBlockgetNextBlock()StringtoExplainString()-
Methods inherited from class org.apache.pinot.query.runtime.operator.BaseMailboxReceiveOperator
getChildOperators, getMailboxIds, getMultiConsumer
-
Methods inherited from class org.apache.pinot.query.runtime.operator.MultiStageOperator
getOperatorId, nextBlock, shouldCollectStats
-
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
-
-
-
-
Constructor Detail
-
SortedMailboxReceiveOperator
public SortedMailboxReceiveOperator(OpChainExecutionContext context, org.apache.calcite.rel.RelDistribution.Type exchangeType, DataSchema dataSchema, List<RexExpression> collationKeys, List<org.apache.calcite.rel.RelFieldCollation.Direction> collationDirections, List<org.apache.calcite.rel.RelFieldCollation.NullDirection> collationNullDirections, boolean isSortOnSender, int senderStageId)
-
-
Method Detail
-
toExplainString
@Nullable public String toExplainString()
-
getNextBlock
protected TransferableBlock getNextBlock()
- Specified by:
getNextBlockin classMultiStageOperator
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classBaseMailboxReceiveOperator
-
cancel
public void cancel(Throwable t)
- Overrides:
cancelin classBaseMailboxReceiveOperator
-
-