@Internal public class MetadataV4Serializer extends Object implements MetadataSerializer
CheckpointProperties
serialization.Modifier and Type | Field and Description |
---|---|
static MetadataSerializer |
INSTANCE |
static int |
VERSION |
Constructor and Description |
---|
MetadataV4Serializer() |
Modifier and Type | Method and Description |
---|---|
CheckpointMetadata |
deserialize(DataInputStream dis,
ClassLoader userCodeClassLoader,
String externalPointer)
Deserializes a savepoint from an input stream.
|
int |
getVersion()
Returns the version number of the object.
|
void |
serialize(CheckpointMetadata checkpointMetadata,
DataOutputStream dos)
Serializes a savepoint or checkpoint metadata to an output stream.
|
public static final MetadataSerializer INSTANCE
public static final int VERSION
public int getVersion()
Versioned
getVersion
in interface Versioned
public CheckpointMetadata deserialize(DataInputStream dis, ClassLoader userCodeClassLoader, String externalPointer) throws IOException
MetadataSerializer
deserialize
in interface MetadataSerializer
dis
- Input stream to deserialize savepoint fromuserCodeClassLoader
- the user code class loaderexternalPointer
- the external pointer of the given checkpointIOException
- Serialization failures are forwardedpublic void serialize(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException
MetadataSerializer
serialize
in interface MetadataSerializer
IOException
- Serialization failures are forwardedCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.