@Internal public abstract class MetadataV2V3SerializerBase extends Object
The difference between versions 2 and 3 is minor. Version 3 includes operator coordinator state for each operator, and drops some minor unused fields.
Basic checkpoint metadata layout:
+--------------+---------------+-----------------+ | checkpointID | master states | operator states | +--------------+---------------+-----------------+ Master state: +--------------+---------------------+---------+------+---------------+ | magic number | num remaining bytes | version | name | payload bytes | +--------------+---------------------+---------+------+---------------+
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
MetadataV2V3SerializerBase.DeserializationContext
A context that keeps information needed during serialization.
|
| 构造器和说明 |
|---|
MetadataV2V3SerializerBase() |
protected void serializeMetadata(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException
IOExceptionprotected CheckpointMetadata deserializeMetadata(DataInputStream dis, @Nullable String externalPointer) throws IOException
IOExceptionprotected void serializeMasterState(MasterState state, DataOutputStream dos) throws IOException
IOExceptionprotected MasterState deserializeMasterState(DataInputStream dis) throws IOException
IOExceptionprotected abstract void serializeOperatorState(OperatorState operatorState, DataOutputStream dos) throws IOException
IOExceptionprotected abstract OperatorState deserializeOperatorState(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOExceptionprotected void serializeSubtaskState(OperatorSubtaskState subtaskState, DataOutputStream dos) throws IOException
IOExceptionprotected OperatorSubtaskState deserializeSubtaskState(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOExceptionprotected StateObjectCollection<ResultSubpartitionStateHandle> deserializeResultSubpartitionStateHandle(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOExceptionprotected StateObjectCollection<InputChannelStateHandle> deserializeInputChannelStateHandle(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOExceptionprotected void serializeResultSubpartitionStateHandle(ResultSubpartitionStateHandle resultSubpartitionStateHandle, DataOutputStream dos) throws IOException
IOExceptionprotected void serializeInputChannelStateHandle(InputChannelStateHandle inputChannelStateHandle, DataOutputStream dos) throws IOException
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.