Class AbstractPartitioningOperator.AbstractReceiver

java.lang.Object
org.apache.druid.query.operator.AbstractPartitioningOperator.AbstractReceiver
All Implemented Interfaces:
Operator.Receiver
Enclosing class:
AbstractPartitioningOperator

protected abstract static class AbstractPartitioningOperator.AbstractReceiver extends Object implements Operator.Receiver
  • Field Details

  • Constructor Details

  • Method Details

    • push

      public Operator.Signal push(RowsAndColumns rac)
      Description copied from interface: Operator.Receiver
      Used to push data. Return value indicates if more data will be accepted. If false, push should not be called anymore. If push is called after it returned false, undefined things will happen.
      Specified by:
      push in interface Operator.Receiver
      Parameters:
      rac - RowsAndColumns of data
      Returns:
      a boolean value indicating if more data will be accepted. If false, push should never be called anymore
    • completed

      public void completed()
      Description copied from interface: Operator.Receiver
      Used to indicate that no more data will ever come. This is only used during the happy path and is not equivalent to a Closeable.close() method. Namely, there is no guarantee that this method will be called if execution halts due to an exception from push.

      It is acceptable for an implementation to eagerly close resources from this method, but it is not acceptable for this method to be the sole method of managing the lifecycle of resources held by the Operator.

      Specified by:
      completed in interface Operator.Receiver
    • pushPartition

      protected Operator.Signal pushPartition(RowsAndColumns partition, boolean isLastPartition, Operator.Signal previousSignal)
    • getIteratorForRAC

      protected abstract Iterator<RowsAndColumns> getIteratorForRAC(RowsAndColumns rac)