Class BufferOrEvent
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent
-
public class BufferOrEvent extends Object
Either type forBufferorAbstractEventinstances tagged with the channel index, from which they were received.
-
-
Constructor Summary
Constructors Constructor Description BufferOrEvent(AbstractEvent event, boolean hasPriority, InputChannelInfo channelInfo, boolean moreAvailable, int size, boolean morePriorityEvents)BufferOrEvent(AbstractEvent event, InputChannelInfo channelInfo)BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo)BufferOrEvent(Buffer buffer, InputChannelInfo channelInfo, boolean moreAvailable, boolean morePriorityEvents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuffergetBuffer()InputChannelInfogetChannelInfo()AbstractEventgetEvent()intgetSize()booleanhasPriority()booleanisBuffer()booleanisEvent()booleanmoreAvailable()booleanmorePriorityEvents()voidsetChannelInfo(InputChannelInfo channelInfo)voidsetMoreAvailable(boolean moreAvailable)StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
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()
-
setMoreAvailable
public void setMoreAvailable(boolean moreAvailable)
-
getSize
public int getSize()
-
hasPriority
public boolean hasPriority()
-
-