org.terrier.structures.seralization
Class FixedSizeIntWritableFactory
java.lang.Object
org.terrier.structures.seralization.FixedSizeIntWritableFactory
- All Implemented Interfaces:
- FixedSizeWriteableFactory<org.apache.hadoop.io.IntWritable>, WriteableFactory<org.apache.hadoop.io.IntWritable>
public class FixedSizeIntWritableFactory
- extends 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 |
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 |
FixedSizeIntWritableFactory
public FixedSizeIntWritableFactory()
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.6. Copyright © 2004-2011 University of Glasgow