Class ByteWritableSerializer
java.lang.Object
org.apache.hadoop.mapred.nativetask.serde.DefaultSerializer
org.apache.hadoop.mapred.nativetask.serde.ByteWritableSerializer
- All Implemented Interfaces:
INativeComparable,INativeSerializer<org.apache.hadoop.io.Writable>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLength(org.apache.hadoop.io.Writable w) get length of data to be serialized.Methods inherited from class org.apache.hadoop.mapred.nativetask.serde.DefaultSerializer
deserialize, serialize
-
Constructor Details
-
ByteWritableSerializer
public ByteWritableSerializer()
-
-
Method Details
-
getLength
Description copied from interface:INativeSerializerget length of data to be serialized. If the data length is already known (like IntWritable) and could immediately be returned from this method, it is good chance to implement customized NativeSerializer for efficiency- Specified by:
getLengthin interfaceINativeSerializer<org.apache.hadoop.io.Writable>- Overrides:
getLengthin classDefaultSerializer- Throws:
IOException
-