Class EventSerializer
java.lang.Object
org.apache.flink.runtime.io.network.api.serialization.EventSerializer
Utility class to serialize and deserialize task events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractEventfromBuffer(Buffer buffer, ClassLoader classLoader) static AbstractEventfromSerializedEvent(ByteBuffer buffer, ClassLoader classLoader) static BuffertoBuffer(AbstractEvent event, boolean hasPriority) static BufferConsumertoBufferConsumer(AbstractEvent event, boolean hasPriority) static ByteBuffertoSerializedEvent(AbstractEvent event)
-
Constructor Details
-
EventSerializer
public EventSerializer()
-
-
Method Details
-
toSerializedEvent
- Throws:
IOException
-
fromSerializedEvent
public static AbstractEvent fromSerializedEvent(ByteBuffer buffer, ClassLoader classLoader) throws IOException - Throws:
IOException
-
toBuffer
- Throws:
IOException
-
toBufferConsumer
public static BufferConsumer toBufferConsumer(AbstractEvent event, boolean hasPriority) throws IOException - Throws:
IOException
-
fromBuffer
- Throws:
IOException
-