public interface MetadataSerializer extends Versioned
Version-specific serializers are accessed via the MetadataSerializers
helper.
Modifier and Type | Method and Description |
---|---|
CheckpointMetadata |
deserialize(DataInputStream dis,
ClassLoader userCodeClassLoader,
String externalPointer)
Deserializes a savepoint from an input stream.
|
void |
serialize(CheckpointMetadata checkpointMetadata,
DataOutputStream dos)
Serializes a savepoint or checkpoint metadata to an output stream.
|
getVersion
CheckpointMetadata deserialize(DataInputStream dis, ClassLoader userCodeClassLoader, String externalPointer) throws IOException
dis
- Input stream to deserialize savepoint fromuserCodeClassLoader
- the user code class loaderexternalPointer
- the external pointer of the given checkpointIOException
- Serialization failures are forwardedvoid serialize(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException
IOException
- Serialization failures are forwardedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.