Class MetadataV4Serializer
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.metadata.MetadataV4Serializer
-
- All Implemented Interfaces:
org.apache.flink.core.io.Versioned,MetadataSerializer
@Internal public class MetadataV4Serializer extends Object implements MetadataSerializer
V4 serializer that addsCheckpointPropertiesserialization.
-
-
Field Summary
Fields Modifier and Type Field Description static MetadataSerializerINSTANCEstatic intVERSION
-
Constructor Summary
Constructors Constructor Description MetadataV4Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckpointMetadatadeserialize(DataInputStream dis, ClassLoader userCodeClassLoader, String externalPointer)Deserializes a savepoint from an input stream.intgetVersion()voidserialize(CheckpointMetadata checkpointMetadata, DataOutputStream dos)Serializes a savepoint or checkpoint metadata to an output stream.
-
-
-
Field Detail
-
INSTANCE
public static final MetadataSerializer INSTANCE
-
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public int getVersion()
- Specified by:
getVersionin interfaceorg.apache.flink.core.io.Versioned
-
deserialize
public CheckpointMetadata deserialize(DataInputStream dis, ClassLoader userCodeClassLoader, String externalPointer) throws IOException
Description copied from interface:MetadataSerializerDeserializes a savepoint from an input stream.- Specified by:
deserializein interfaceMetadataSerializer- Parameters:
dis- Input stream to deserialize savepoint fromuserCodeClassLoader- the user code class loaderexternalPointer- the external pointer of the given checkpoint- Returns:
- The deserialized savepoint
- Throws:
IOException- Serialization failures are forwarded
-
serialize
public void serialize(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException
Description copied from interface:MetadataSerializerSerializes a savepoint or checkpoint metadata to an output stream.- Specified by:
serializein interfaceMetadataSerializer- Throws:
IOException- Serialization failures are forwarded
-
-