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 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
Constructors Constructor Description FixedSizeIntWritableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()Return size of IntWritable, namely 4 bytesorg.apache.hadoop.io.IntWritablenewInstance()Makes a new IntWritable
-
-
-
Method Detail
-
getSize
public int getSize()
Return size of IntWritable, namely 4 bytes- Specified by:
getSizein interfaceFixedSizeWriteableFactory<org.apache.hadoop.io.IntWritable>
-
newInstance
public org.apache.hadoop.io.IntWritable newInstance()
Makes a new IntWritable- Specified by:
newInstancein interfaceWriteableFactory<org.apache.hadoop.io.IntWritable>
-
-