Class OpChain
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.OpChain
-
- All Implemented Interfaces:
AutoCloseable
public class OpChain extends Object implements AutoCloseable
AnOpChainrepresents a chain of operators that are separated by send/receive stages.
-
-
Constructor Summary
Constructors Constructor Description OpChain(OpChainExecutionContext context, MultiStageOperator root)OpChain(OpChainExecutionContext context, MultiStageOperator root, Consumer<OpChainId> finishCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(Throwable e)cancel() is called when execution runs into error.voidclose()close() is called when we finish execution successfully.OpChainIdgetId()Operator<TransferableBlock>getRoot()OpChainStatsgetStats()StringtoString()
-
-
-
Constructor Detail
-
OpChain
public OpChain(OpChainExecutionContext context, MultiStageOperator root)
-
OpChain
public OpChain(OpChainExecutionContext context, MultiStageOperator root, Consumer<OpChainId> finishCallback)
-
-
Method Detail
-
getId
public OpChainId getId()
-
getStats
public OpChainStats getStats()
-
getRoot
public Operator<TransferableBlock> getRoot()
-
close
public void close()
close() is called when we finish execution successfully. Once theOpChainis being executed, this method should only be called from the thread that is actually executing it.- Specified by:
closein interfaceAutoCloseable
-
-