Class EventSerializer
- java.lang.Object
-
- org.apache.flink.runtime.io.network.api.serialization.EventSerializer
-
public class EventSerializer extends Object
Utility class to serialize and deserialize task events.
-
-
Constructor Summary
Constructors Constructor Description EventSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
toSerializedEvent
public static ByteBuffer toSerializedEvent(AbstractEvent event) throws IOException
- Throws:
IOException
-
fromSerializedEvent
public static AbstractEvent fromSerializedEvent(ByteBuffer buffer, ClassLoader classLoader) throws IOException
- Throws:
IOException
-
toBuffer
public static Buffer toBuffer(AbstractEvent event, boolean hasPriority) throws IOException
- Throws:
IOException
-
toBufferConsumer
public static BufferConsumer toBufferConsumer(AbstractEvent event, boolean hasPriority) throws IOException
- Throws:
IOException
-
fromBuffer
public static AbstractEvent fromBuffer(Buffer buffer, ClassLoader classLoader) throws IOException
- Throws:
IOException
-
-