Class FixedSizeIntWritableFactory

  • All Implemented Interfaces:
    FixedSizeWriteableFactory<org.apache.hadoop.io.IntWritable>, WriteableFactory<org.apache.hadoop.io.IntWritable>

    public class FixedSizeIntWritableFactory
    extends java.lang.Object
    implements FixedSizeWriteableFactory<org.apache.hadoop.io.IntWritable>
    Makes an IntWritable, which has a fixed Writable size of 4 bytes.
    Since:
    3.0
    Author:
    Craig Macdonald
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSize()
      Return size of IntWritable, namely 4 bytes
      org.apache.hadoop.io.IntWritable newInstance()
      Makes a new IntWritable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FixedSizeIntWritableFactory

        public FixedSizeIntWritableFactory()
    • Method Detail

      • getSize

        public int getSize()
        Return size of IntWritable, namely 4 bytes
        Specified by:
        getSize in interface FixedSizeWriteableFactory<org.apache.hadoop.io.IntWritable>
      • newInstance

        public org.apache.hadoop.io.IntWritable newInstance()
        Makes a new IntWritable
        Specified by:
        newInstance in interface WriteableFactory<org.apache.hadoop.io.IntWritable>