org.terrier.structures.seralization
Class FixedSizeIntWritableFactory

java.lang.Object
  extended by org.terrier.structures.seralization.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

Constructor Summary
FixedSizeIntWritableFactory()
           
 
Method Summary
 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>


Terrier 3.5. Copyright © 2004-2011 University of Glasgow