org.terrier.structures
Class BlockLexiconEntry.Factory

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

public static class BlockLexiconEntry.Factory
extends BasicLexiconEntry.Factory

Factory for creating block lexicon entries


Constructor Summary
BlockLexiconEntry.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

BlockLexiconEntry.Factory

public BlockLexiconEntry.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>
Overrides:
getSize in class BasicLexiconEntry.Factory

newInstance

public LexiconEntry newInstance()
Make a new instance of T

Specified by:
newInstance in interface WriteableFactory<LexiconEntry>
Overrides:
newInstance in class BasicLexiconEntry.Factory


Terrier 3.5. Copyright © 2004-2011 University of Glasgow