public interface ISerializer<T>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(DataInputPlus 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) |
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(DataInputPlus in) throws java.io.IOException
in
- DataInput from which deserialization needs to happen.java.io.IOException
long serializedSize(T t)
Copyright © 2017 The Apache Software Foundation