Class BufferOrEvent
java.lang.Object
org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent
Either type for
Buffer or AbstractEvent instances tagged with the channel index,
from which they were received.-
Constructor Summary
ConstructorsConstructorDescriptionBufferOrEvent(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
Modifier and TypeMethodDescriptiongetEvent()intgetSize()booleanbooleanisBuffer()booleanisEvent()booleanbooleanvoidsetChannelInfo(InputChannelInfo channelInfo) voidsetMoreAvailable(boolean moreAvailable) toString()
-
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
-
BufferOrEvent
-
-
Method Details
-
isBuffer
public boolean isBuffer() -
isEvent
public boolean isEvent() -
getBuffer
-
getEvent
-
getChannelInfo
-
setChannelInfo
-
moreAvailable
public boolean moreAvailable() -
morePriorityEvents
public boolean morePriorityEvents() -
toString
-
setMoreAvailable
public void setMoreAvailable(boolean moreAvailable) -
getSize
public int getSize() -
hasPriority
public boolean hasPriority()
-