@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 | +--------------+---------------------+---------+------+---------------+
Modifier and Type | Class and Description |
---|---|
protected static class |
MetadataV2V3SerializerBase.DeserializationContext
A context that keeps information needed during serialization.
|
Constructor and Description |
---|
MetadataV2V3SerializerBase() |
protected void serializeMetadata(CheckpointMetadata checkpointMetadata, DataOutputStream dos) throws IOException
IOException
protected CheckpointMetadata deserializeMetadata(DataInputStream dis, @Nullable String externalPointer) throws IOException
IOException
protected void serializeMasterState(MasterState state, DataOutputStream dos) throws IOException
IOException
protected MasterState deserializeMasterState(DataInputStream dis) throws IOException
IOException
protected abstract void serializeOperatorState(OperatorState operatorState, DataOutputStream dos) throws IOException
IOException
protected abstract OperatorState deserializeOperatorState(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOException
protected void serializeSubtaskState(OperatorSubtaskState subtaskState, DataOutputStream dos) throws IOException
IOException
protected OperatorSubtaskState deserializeSubtaskState(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOException
protected StateObjectCollection<ResultSubpartitionStateHandle> deserializeResultSubpartitionStateHandle(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOException
protected StateObjectCollection<InputChannelStateHandle> deserializeInputChannelStateHandle(DataInputStream dis, @Nullable MetadataV2V3SerializerBase.DeserializationContext context) throws IOException
IOException
protected void serializeResultSubpartitionStateHandle(ResultSubpartitionStateHandle resultSubpartitionStateHandle, DataOutputStream dos) throws IOException
IOException
protected void serializeInputChannelStateHandle(InputChannelStateHandle inputChannelStateHandle, DataOutputStream dos) throws IOException
IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.