Class UnionResultSubpartitionView

  • All Implemented Interfaces:
    BufferAvailabilityListener, ResultSubpartitionView

    public class UnionResultSubpartitionView
    extends Object
    implements ResultSubpartitionView, BufferAvailabilityListener
    A wrapper to union the output from multiple ResultSubpartitionViews. This class provides the following guarantees to the output buffers.
    • Each output buffer corresponds to a buffer in one of the subpartitions.
    • Buffers in the same subpartition are output without their order changed.
    • If a record is split and placed into multiple adjacent buffers due to the capacity limit of the buffer, these buffers will be output consecutively without the entry of buffers from other subpartitions in between.