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) | 
| default void | skip(DataInputPlus in) | 
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)
default void skip(DataInputPlus in) throws java.io.IOException
java.io.IOExceptionCopyright © 2018 The Apache Software Foundation