public class WrappedManifestCommittableSerializer extends Object implements VersionedSerializer<WrappedManifestCommittable>
Modifier and Type | Field and Description |
---|---|
protected static int |
CURRENT_VERSION |
Constructor and Description |
---|
WrappedManifestCommittableSerializer() |
Modifier and Type | Method and Description |
---|---|
WrappedManifestCommittable |
deserialize(int version,
byte[] serialized)
De-serializes the given data (bytes) which was serialized with the scheme of the indicated
version.
|
int |
getVersion()
Gets the version with which this serializer serializes.
|
byte[] |
serialize(WrappedManifestCommittable wrapped)
Serializes the given object.
|
protected static final int CURRENT_VERSION
public WrappedManifestCommittableSerializer()
public int getVersion()
VersionedSerializer
getVersion
in interface VersionedSerializer<WrappedManifestCommittable>
public byte[] serialize(WrappedManifestCommittable wrapped) throws IOException
VersionedSerializer
VersionedSerializer.getVersion()
.serialize
in interface VersionedSerializer<WrappedManifestCommittable>
wrapped
- The object to serialize.IOException
- Thrown, if the serialization fails.public WrappedManifestCommittable deserialize(int version, byte[] serialized) throws IOException
VersionedSerializer
deserialize
in interface VersionedSerializer<WrappedManifestCommittable>
version
- The version in which the data was serializedserialized
- The serialized dataIOException
- Thrown, if the deserialization fails.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.