Class OSSRecoverableSerializer

java.lang.Object
org.apache.flink.fs.osshadoop.writer.OSSRecoverableSerializer
All Implemented Interfaces:
org.apache.flink.core.io.SimpleVersionedSerializer<OSSRecoverable>, org.apache.flink.core.io.Versioned

@Internal public class OSSRecoverableSerializer extends Object implements org.apache.flink.core.io.SimpleVersionedSerializer<OSSRecoverable>
Serializer implementation for a OSSRecoverable.
  • Method Details

    • getVersion

      public int getVersion()
      Specified by:
      getVersion in interface org.apache.flink.core.io.SimpleVersionedSerializer<OSSRecoverable>
      Specified by:
      getVersion in interface org.apache.flink.core.io.Versioned
    • serialize

      public byte[] serialize(OSSRecoverable ossRecoverable) throws IOException
      Specified by:
      serialize in interface org.apache.flink.core.io.SimpleVersionedSerializer<OSSRecoverable>
      Throws:
      IOException
    • deserialize

      public OSSRecoverable deserialize(int version, byte[] serialized) throws IOException
      Specified by:
      deserialize in interface org.apache.flink.core.io.SimpleVersionedSerializer<OSSRecoverable>
      Throws:
      IOException