Class EndOfData
- java.lang.Object
-
- org.apache.flink.runtime.event.AbstractEvent
-
- org.apache.flink.runtime.event.RuntimeEvent
-
- org.apache.flink.runtime.io.network.api.EndOfData
-
- All Implemented Interfaces:
org.apache.flink.core.io.IOReadableWritable
public class EndOfData extends RuntimeEvent
This event indicates there will be no more data records in a subpartition. There still might be other events, in particularCheckpointBarrierstraveling. TheEndOfDatais acknowledged by the downstream task. That way we can safely assume the downstream task has consumed all the produced records and therefore we can perform a final checkpoint for the upstream task.- See Also:
- FLIP-147
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StopModegetStopMode()inthashCode()voidread(org.apache.flink.core.memory.DataInputView in)StringtoString()voidwrite(org.apache.flink.core.memory.DataOutputView out)
-
-
-
Constructor Detail
-
EndOfData
public EndOfData(StopMode mode)
-
-
Method Detail
-
getStopMode
public StopMode getStopMode()
-
write
public void write(org.apache.flink.core.memory.DataOutputView out) throws IOException- Throws:
IOException
-
read
public void read(org.apache.flink.core.memory.DataInputView in) throws IOException- Throws:
IOException
-
-