public static class ReadCommand.Serializer extends java.lang.Object implements IVersionedSerializer<ReadCommand>
Constructor and Description |
---|
Serializer() |
Serializer(SchemaProvider schema) |
Modifier and Type | Method and Description |
---|---|
ReadCommand |
deserialize(DataInputPlus in,
int version)
Deserialize into the specified DataInputStream instance.
|
void |
serialize(ReadCommand command,
DataOutputPlus out,
int version)
Serialize the specified type into the specified DataOutputStream instance.
|
long |
serializedSize(ReadCommand command,
int version)
Calculate serialized size of object without actually serializing.
|
public Serializer()
public Serializer(SchemaProvider schema)
public void serialize(ReadCommand command, DataOutputPlus out, int version) throws java.io.IOException
IVersionedAsymmetricSerializer
serialize
in interface IVersionedAsymmetricSerializer<ReadCommand,ReadCommand>
command
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.version
- protocol versionjava.io.IOException
- if serialization failspublic ReadCommand deserialize(DataInputPlus in, int version) throws java.io.IOException
IVersionedAsymmetricSerializer
deserialize
in interface IVersionedAsymmetricSerializer<ReadCommand,ReadCommand>
in
- DataInput from which deserialization needs to happen.version
- protocol versionjava.io.IOException
- if deserialization failspublic long serializedSize(ReadCommand command, int version)
IVersionedAsymmetricSerializer
serializedSize
in interface IVersionedAsymmetricSerializer<ReadCommand,ReadCommand>
command
- object to calculate serialized sizeversion
- protocol versionCopyright © 2009-2021 The Apache Software Foundation