Package org.terrier.structures
Class FieldLexiconEntry.Factory
- java.lang.Object
-
- org.terrier.structures.FieldLexiconEntry.Factory
-
- All Implemented Interfaces:
FixedSizeWriteableFactory<LexiconEntry>
,WriteableFactory<LexiconEntry>
- Enclosing class:
- FieldLexiconEntry
public static class FieldLexiconEntry.Factory extends java.lang.Object implements FixedSizeWriteableFactory<LexiconEntry>
Factory for a LexiconEntry
-
-
Field Summary
Fields Modifier and Type Field Description protected int
fieldCount
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
Returns the size in bytes when T is written to disk by Writable interface methodsLexiconEntry
newInstance()
Make a new instance of T
-
-
-
Constructor Detail
-
Factory
public Factory()
Construct an instance of the class.
-
Factory
public Factory(int _fieldCount)
Construct an instance of the class with- Parameters:
_fieldCount
-
-
Factory
public Factory(java.lang.String _fieldCount)
Construct an instance of the class with- Parameters:
_fieldCount
-
-
-
Method Detail
-
getSize
public int getSize()
Returns the size in bytes when T is written to disk by Writable interface methods- Specified by:
getSize
in interfaceFixedSizeWriteableFactory<LexiconEntry>
-
newInstance
public LexiconEntry newInstance()
Make a new instance of T- Specified by:
newInstance
in interfaceWriteableFactory<LexiconEntry>
-
-