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