public class AppendCompactTaskSerializer extends Object implements VersionedSerializer<AppendCompactTask>
AppendCompactTask.| Constructor and Description |
|---|
AppendCompactTaskSerializer() |
| Modifier and Type | Method and Description |
|---|---|
AppendCompactTask |
deserialize(int version,
byte[] serialized)
De-serializes the given data (bytes) which was serialized with the scheme of the indicated
version.
|
List<AppendCompactTask> |
deserializeList(int version,
DataInputView view) |
int |
getVersion()
Gets the version with which this serializer serializes.
|
byte[] |
serialize(AppendCompactTask obj)
Serializes the given object.
|
void |
serializeList(List<AppendCompactTask> list,
DataOutputView view) |
public int getVersion()
VersionedSerializergetVersion in interface VersionedSerializer<AppendCompactTask>public byte[] serialize(AppendCompactTask obj) throws IOException
VersionedSerializerVersionedSerializer.getVersion().serialize in interface VersionedSerializer<AppendCompactTask>obj - The object to serialize.IOException - Thrown, if the serialization fails.public void serializeList(List<AppendCompactTask> list, DataOutputView view) throws IOException
IOExceptionpublic AppendCompactTask deserialize(int version, byte[] serialized) throws IOException
VersionedSerializerdeserialize in interface VersionedSerializer<AppendCompactTask>version - The version in which the data was serializedserialized - The serialized dataIOException - Thrown, if the deserialization fails.public List<AppendCompactTask> deserializeList(int version, DataInputView view) throws IOException
IOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.