Interface MetadataSerializer

All Superinterfaces:
org.apache.flink.core.io.Versioned
All Known Implementing Classes:
MetadataV1Serializer, MetadataV2Serializer, MetadataV3Serializer, MetadataV4Serializer, MetadataV5Serializer

public interface MetadataSerializer extends org.apache.flink.core.io.Versioned
Deserializer for checkpoint metadata. Different deserializers exist to deserialize from different format versions.

Version-specific serializers are accessed via the MetadataSerializers helper.

  • Method Details

    • deserialize

      CheckpointMetadata deserialize(DataInputStream dis, ClassLoader userCodeClassLoader, String externalPointer) throws IOException
      Deserializes a savepoint from an input stream.
      Parameters:
      dis - Input stream to deserialize savepoint from
      userCodeClassLoader - the user code class loader
      externalPointer - the external pointer of the given checkpoint
      Returns:
      The deserialized savepoint
      Throws:
      IOException - Serialization failures are forwarded
    • serialize

      void serialize(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException
      Serializes a savepoint or checkpoint metadata to an output stream.
      Throws:
      IOException - Serialization failures are forwarded