@Internal public class MetadataV3Serializer extends MetadataV2V3SerializerBase implements MetadataSerializer
Compared to format version 2, this drops some unused fields and introduces operator coordinator state.
See MetadataV2V3SerializerBase for a description of the format layout.
MetadataV2V3SerializerBase.DeserializationContext| 限定符和类型 | 字段和说明 |
|---|---|
static MetadataV3Serializer |
INSTANCE
The singleton instance of the serializer.
|
static int |
VERSION
The metadata format version.
|
deserializeMasterState, deserializeMetadata, deserializeSubtaskState, serializeMasterState, serializeMetadatapublic static final int VERSION
public static final MetadataV3Serializer INSTANCE
public int getVersion()
getVersion 在接口中 org.apache.flink.core.io.Versionedpublic static void serialize(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException
IOExceptionpublic CheckpointMetadata deserialize(DataInputStream dis, ClassLoader classLoader, String externalPointer) throws IOException
MetadataSerializerdeserialize 在接口中 MetadataSerializerdis - Input stream to deserialize savepoint fromclassLoader - the user code class loaderexternalPointer - the external pointer of the given checkpointIOException - Serialization failures are forwardedprotected void serializeOperatorState(OperatorState operatorState, DataOutputStream dos) throws IOException
serializeOperatorState 在类中 MetadataV2V3SerializerBaseIOExceptionprotected void serializeSubtaskState(OperatorSubtaskState subtaskState, DataOutputStream dos) throws IOException
protected OperatorState deserializeOperatorState(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
@VisibleForTesting public void serializeResultSubpartitionStateHandle(ResultSubpartitionStateHandle handle, DataOutputStream dos) throws IOException
@VisibleForTesting public StateObjectCollection<ResultSubpartitionStateHandle> deserializeResultSubpartitionStateHandle(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
@VisibleForTesting public void serializeInputChannelStateHandle(InputChannelStateHandle handle, DataOutputStream dos) throws IOException
@VisibleForTesting public StateObjectCollection<InputChannelStateHandle> deserializeInputChannelStateHandle(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
@VisibleForTesting public static void serializeStreamStateHandle(StreamStateHandle stateHandle, DataOutputStream dos) throws IOException
IOException@VisibleForTesting public static StreamStateHandle deserializeStreamStateHandle(DataInputStream dis) throws IOException
IOException@VisibleForTesting public static void serializeOperatorStateHandleUtil(OperatorStateHandle stateHandle, DataOutputStream dos) throws IOException
IOException@VisibleForTesting public static OperatorStateHandle deserializeOperatorStateHandleUtil(DataInputStream dis) throws IOException
IOException@VisibleForTesting public static void serializeKeyedStateHandleUtil(KeyedStateHandle stateHandle, DataOutputStream dos) throws IOException
IOException@VisibleForTesting public static KeyedStateHandle deserializeKeyedStateHandleUtil(DataInputStream dis) throws IOException
IOException@VisibleForTesting public static StateObjectCollection<InputChannelStateHandle> deserializeInputChannelStateHandle(DataInputStream dis) throws IOException
IOException@VisibleForTesting public StateObjectCollection<ResultSubpartitionStateHandle> deserializeResultSubpartitionStateHandle(DataInputStream dis) throws IOException
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.