Class IntWritableSerializer

java.lang.Object
org.apache.hadoop.mapred.nativetask.serde.DefaultSerializer
org.apache.hadoop.mapred.nativetask.serde.IntWritableSerializer
All Implemented Interfaces:
INativeComparable, INativeSerializer<org.apache.hadoop.io.Writable>

@Private public class IntWritableSerializer extends DefaultSerializer implements INativeComparable
  • Constructor Details

    • IntWritableSerializer

      public IntWritableSerializer()
  • Method Details

    • getLength

      public int getLength(org.apache.hadoop.io.Writable w) throws IOException
      Description copied from interface: INativeSerializer
      get 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:
      getLength in interface INativeSerializer<org.apache.hadoop.io.Writable>
      Overrides:
      getLength in class DefaultSerializer
      Throws:
      IOException