@Internal public class MetadataV1Serializer extends Object implements MetadataSerializer
1
(Flink 1.2.x format). This class is only
retained to give a better error message: Rather than getting a "unknown version", the user gets a
"version no longer supported".Modifier and Type | Field and Description |
---|---|
static MetadataV1Serializer |
INSTANCE |
static int |
VERSION
The savepoint version.
|
Modifier and Type | Method and Description |
---|---|
CheckpointMetadata |
deserialize(DataInputStream dis,
ClassLoader cl,
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 int VERSION
public static final MetadataV1Serializer INSTANCE
public int getVersion()
Versioned
getVersion
in interface Versioned
public CheckpointMetadata deserialize(DataInputStream dis, ClassLoader cl, String externalPointer) throws IOException
MetadataSerializer
deserialize
in interface MetadataSerializer
dis
- Input stream to deserialize savepoint fromcl
- 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.