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.IOExceptionT deserialize(DataInputPlus in) throws java.io.IOException
in - DataInput from which deserialization needs to happen.java.io.IOExceptionlong serializedSize(T t)
Copyright © 2015 The Apache Software Foundation