Module org.elasticsearch.compute
Class ExchangeSinkOperator
java.lang.Object
org.elasticsearch.compute.operator.SinkOperator
org.elasticsearch.compute.operator.exchange.ExchangeSinkOperator
- All Implemented Interfaces:
Closeable,AutoCloseable,Operator,org.elasticsearch.core.Releasable
Sink operator implementation that pushes data to an
ExchangeSink-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classNested classes/interfaces inherited from class org.elasticsearch.compute.operator.SinkOperator
SinkOperator.SinkOperatorFactoryNested classes/interfaces inherited from interface org.elasticsearch.compute.operator.Operator
Operator.OperatorFactory -
Field Summary
Fields inherited from interface org.elasticsearch.compute.operator.Operator
MIN_TARGET_PAGE_SIZE, NOT_BLOCKED, TARGET_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompletionListener(ActionListener<Void> listener) voidclose()notifies the operator that it won't be used anymore (i.e.protected voiddoAddInput(Page page) voidfinish()notifies the operator that it won't receive any more input pagesAn operator can be blocked on some action (e.g.booleanwhether the operator has finished processing all input pages and made the corresponding output pages availablebooleanwhether the given operator can accept more input pagesstatus()The status of the operator.toString()Methods inherited from class org.elasticsearch.compute.operator.SinkOperator
addInput, getOutput
-
Constructor Details
-
ExchangeSinkOperator
-
-
Method Details
-
isFinished
public boolean isFinished()Description copied from interface:Operatorwhether the operator has finished processing all input pages and made the corresponding output pages available -
addCompletionListener
-
finish
public void finish()Description copied from interface:Operatornotifies the operator that it won't receive any more input pages -
isBlocked
Description copied from interface:OperatorAn operator can be blocked on some action (e.g. waiting for some resources to become available). If so, it returns a future that completes when the operator becomes unblocked. If the operator is not blocked, this method returnsOperator.NOT_BLOCKEDwhich is an already completed future. -
needsInput
public boolean needsInput()Description copied from interface:Operatorwhether the given operator can accept more input pages -
doAddInput
- Specified by:
doAddInputin classSinkOperator
-
close
public void close()Description copied from interface:Operatornotifies the operator that it won't be used anymore (i.e. none of the other methods called), and its resources can be cleaned up -
toString
-
status
Description copied from interface:OperatorThe status of the operator.
-