T
- Type of object to be serialized.public interface WritableWriter<T>
Modifier and Type | Method and Description |
---|---|
T |
readFields(DataInput in)
Deserialize the fields of object from
in . |
void |
write(DataOutput out,
T value)
Serialize the fields of
value to out . |
void write(DataOutput out, T value) throws IOException
value
to out
.out
- DataOuput
to serialize object into.value
- Object to serializeIOException
T readFields(DataInput in) throws IOException
in
.in
- DataInput
to deseriablize object from.IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.