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

public class ExchangeSinkOperator extends SinkOperator
Sink operator implementation that pushes data to an ExchangeSink
  • Constructor Details

    • ExchangeSinkOperator

      public ExchangeSinkOperator(ExchangeSink sink)
  • Method Details

    • isFinished

      public boolean isFinished()
      Description copied from interface: Operator
      whether the operator has finished processing all input pages and made the corresponding output pages available
    • addCompletionListener

      public void addCompletionListener(ActionListener<Void> listener)
    • finish

      public void finish()
      Description copied from interface: Operator
      notifies the operator that it won't receive any more input pages
    • isBlocked

      public IsBlockedResult isBlocked()
      Description copied from interface: Operator
      An 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 returns Operator.NOT_BLOCKED which is an already completed future.
    • needsInput

      public boolean needsInput()
      Description copied from interface: Operator
      whether the given operator can accept more input pages
    • doAddInput

      protected void doAddInput(Page page)
      Specified by:
      doAddInput in class SinkOperator
    • close

      public void close()
      Description copied from interface: Operator
      notifies 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

      public String toString()
      Overrides:
      toString in class Object
    • status

      public ExchangeSinkOperator.Status status()
      Description copied from interface: Operator
      The status of the operator.