Package org.apache.hadoop.ipc
Class RpcWritable
java.lang.Object
org.apache.hadoop.ipc.RpcWritable
- All Implemented Interfaces:
Writable
- Direct Known Subclasses:
ProtobufWrapperLegacy,RpcWritable.Buffer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classadapter to allow decoding of writables and protobufs from a byte buffer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidreadFields(DataInput in) Deserialize the fields of this object fromin.final voidwrite(DataOutput out) Serialize the fields of this object toout.
-
Constructor Details
-
RpcWritable
public RpcWritable()
-
-
Method Details
-
readFields
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException- any other problem for readFields.
-
write
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException- any other problem for write.
-