org.terrier.structures
Class BasicLexiconEntry.Factory

java.lang.Object
  extended by org.terrier.structures.BasicLexiconEntry.Factory
All Implemented Interfaces:
FixedSizeWriteableFactory<LexiconEntry>, WriteableFactory<LexiconEntry>
Direct Known Subclasses:
BlockLexiconEntry.Factory
Enclosing class:
BasicLexiconEntry

public static class BasicLexiconEntry.Factory
extends java.lang.Object
implements FixedSizeWriteableFactory<LexiconEntry>

Factory for creating LexiconEntry objects


Constructor Summary
BasicLexiconEntry.Factory()
          Constructs an instance of Factory.
BasicLexiconEntry.Factory(java.lang.String s)
          Constructs an instance of Factory.
 
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
 

Constructor Detail

BasicLexiconEntry.Factory

public BasicLexiconEntry.Factory(java.lang.String s)
Constructs an instance of Factory.

Parameters:
s -

BasicLexiconEntry.Factory

public BasicLexiconEntry.Factory()
Constructs an instance of Factory.

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