public class ManifestCommittableSerializer extends Object implements VersionedSerializer<ManifestCommittable>
| Constructor and Description |
|---|
ManifestCommittableSerializer() |
| Modifier and Type | Method and Description |
|---|---|
ManifestCommittable |
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(ManifestCommittable obj)
Serializes the given object.
|
public int getVersion()
VersionedSerializergetVersion in interface VersionedSerializer<ManifestCommittable>public byte[] serialize(ManifestCommittable obj) throws IOException
VersionedSerializerVersionedSerializer.getVersion().serialize in interface VersionedSerializer<ManifestCommittable>obj - The object to serialize.IOException - Thrown, if the serialization fails.public ManifestCommittable deserialize(int version, byte[] serialized) throws IOException
VersionedSerializerdeserialize in interface VersionedSerializer<ManifestCommittable>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.