Class FlinkPravegaUtils.FlinkDeserializer<T>

  • Type Parameters:
    T - The type of the event.
    All Implemented Interfaces:
    io.pravega.client.stream.Serializer<T>
    Enclosing class:
    FlinkPravegaUtils

    public static final class FlinkPravegaUtils.FlinkDeserializer<T>
    extends java.lang.Object
    implements io.pravega.client.stream.Serializer<T>
    A Pravega Serializer that wraps around a Flink DeserializationSchema.
    • Field Summary

      • Fields inherited from interface io.pravega.client.stream.Serializer

        MAX_EVENT_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      FlinkDeserializer​(org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializationSchema)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T deserialize​(java.nio.ByteBuffer buffer)  
      java.nio.ByteBuffer serialize​(T value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlinkDeserializer

        public FlinkDeserializer​(org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializationSchema)
    • Method Detail

      • serialize

        public java.nio.ByteBuffer serialize​(T value)
        Specified by:
        serialize in interface io.pravega.client.stream.Serializer<T>
      • deserialize

        public T deserialize​(java.nio.ByteBuffer buffer)
        Specified by:
        deserialize in interface io.pravega.client.stream.Serializer<T>