Class SerdeUtils


  • public class SerdeUtils
    extends java.lang.Object
    Util methods to help with serialization / deserialization.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object deserializeObject​(byte[] serialized)  
      static <T> org.apache.flink.core.io.SimpleVersionedSerializer<T> getNaiveObjectSerializer()  
      static byte[] serializeObject​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

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

      • serializeObject

        @Nonnull
        public static byte[] serializeObject​(@Nullable
                                             java.lang.Object obj)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeObject

        @Nullable
        public static java.lang.Object deserializeObject​(byte[] serialized)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getNaiveObjectSerializer

        public static <T> org.apache.flink.core.io.SimpleVersionedSerializer<T> getNaiveObjectSerializer()