org.terrier.structures
Class FieldLexiconEntry.Factory

java.lang.Object
  extended by 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
protected  int fieldCount
           
 
Constructor Summary
FieldLexiconEntry.Factory()
          Construct an instance of the class.
FieldLexiconEntry.Factory(int _fieldCount)
          Construct an instance of the class with
FieldLexiconEntry.Factory(java.lang.String _fieldCount)
          Construct an instance of the class with
 
Method Summary
 int getSize()
          Returns the size in bytes when T is written to disk by Writable interface methods
 LexiconEntry newInstance()
          Make a new instance of T
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldCount

protected int fieldCount
Constructor Detail

FieldLexiconEntry.Factory

public FieldLexiconEntry.Factory()
Construct an instance of the class.


FieldLexiconEntry.Factory

public FieldLexiconEntry.Factory(int _fieldCount)
Construct an instance of the class with

Parameters:
_fieldCount -

FieldLexiconEntry.Factory

public FieldLexiconEntry.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 interface FixedSizeWriteableFactory<LexiconEntry>

newInstance

public LexiconEntry newInstance()
Make a new instance of T

Specified by:
newInstance in interface WriteableFactory<LexiconEntry>


Terrier 3.5. Copyright © 2004-2011 University of Glasgow