java.lang.Object
org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent

public class BufferOrEvent extends Object
Either type for Buffer or AbstractEvent instances tagged with the channel index, from which they were received.
  • Constructor Details

    • BufferOrEvent

      public BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo, boolean moreAvailable, boolean morePriorityEvents)
    • BufferOrEvent

      public BufferOrEvent(AbstractEvent event, boolean hasPriority, InputChannelInfo channelInfo, boolean moreAvailable, int size, boolean morePriorityEvents)
    • BufferOrEvent

      @VisibleForTesting public BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo)
    • BufferOrEvent

      @VisibleForTesting public BufferOrEvent(AbstractEvent event, InputChannelInfo channelInfo)
  • Method Details

    • isBuffer

      public boolean isBuffer()
    • isEvent

      public boolean isEvent()
    • getBuffer

      public Buffer getBuffer()
    • getEvent

      public AbstractEvent getEvent()
    • getChannelInfo

      public InputChannelInfo getChannelInfo()
    • setChannelInfo

      public void setChannelInfo(InputChannelInfo channelInfo)
    • moreAvailable

      public boolean moreAvailable()
    • morePriorityEvents

      public boolean morePriorityEvents()
    • toString

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

      public void setMoreAvailable(boolean moreAvailable)
    • getSize

      public int getSize()
    • hasPriority

      public boolean hasPriority()