public interface ISerializer<T>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(java.io.DataInput in)
Deserialize from the specified DataInput instance.
|
void |
serialize(T t,
DataOutputPlus out)
Serialize the specified type into the specified DataOutput instance.
|
long |
serializedSize(T t,
TypeSizes type) |
void serialize(T t, DataOutputPlus out) throws java.io.IOException
t
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.java.io.IOException
T deserialize(java.io.DataInput in) throws java.io.IOException
in
- DataInput from which deserialization needs to happen.java.io.IOException
Copyright © 2017 The Apache Software Foundation