@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() |
public static final int VERSION
public static final MetadataV1Serializer INSTANCE
public int getVersion()
getVersion in interface org.apache.flink.core.io.Versionedpublic CheckpointMetadata deserialize(DataInputStream dis, ClassLoader cl, String externalPointer) throws IOException
MetadataSerializerdeserialize in interface MetadataSerializerdis - Input stream to deserialize savepoint fromcl - the user code class loaderexternalPointer - the external pointer of the given checkpointIOException - Serialization failures are forwardedCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.