Class DoubleWritableSerializer
java.lang.Object
org.apache.hadoop.mapred.nativetask.serde.DefaultSerializer
org.apache.hadoop.mapred.nativetask.serde.DoubleWritableSerializer
- All Implemented Interfaces:
INativeComparable,INativeSerializer<org.apache.hadoop.io.Writable>
@Private
public class DoubleWritableSerializer
extends DefaultSerializer
implements INativeComparable
-
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
-
DoubleWritableSerializer
public DoubleWritableSerializer()
-
-
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
-