Terrier IR Platform
1.1.1

uk.ac.gla.terrier.structures.indexing
Class UTFBlockLexiconBuilder

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.LexiconBuilder
      extended by uk.ac.gla.terrier.structures.indexing.BlockLexiconBuilder
          extended by uk.ac.gla.terrier.structures.indexing.UTFBlockLexiconBuilder

public class UTFBlockLexiconBuilder
extends BlockLexiconBuilder

Builds a block lexicon using block frequencies.

Version:
$Revision: 1.14 $
Author:
Douglas Johnsonm, Vassilis Plachouras & Craig Macdonald

Constructor Summary
UTFBlockLexiconBuilder()
          A default constructor of the class.
UTFBlockLexiconBuilder(java.lang.String pathname, java.lang.String prefix)
          A default constructor which is given a pathname in which the temporary lexicons will be stored.
 
Method Summary
 void finishedDirectIndexBuild()
          The method that performs processing of the lexicon after the creation of the direct index has been completed.
 
Methods inherited from class uk.ac.gla.terrier.structures.indexing.BlockLexiconBuilder
main
 
Methods inherited from class uk.ac.gla.terrier.structures.indexing.LexiconBuilder
addDocumentTerms, addDocumentTerms, addTemporaryLexicon, createLexiconHash, createLexiconHash, createLexiconIndex, createLexiconIndex, finishedInvertedIndexBuild, getFinalNumberOfTerms, getLexInputStream, getLexOutputStream, merge
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTFBlockLexiconBuilder

public UTFBlockLexiconBuilder()
A default constructor of the class. The lexicon is built in the default path and file: ApplicationSetup.TERRIER_INDEX_PATH and ApplicationSetup.TERRIER_INDEX_PREFIX respectively.


UTFBlockLexiconBuilder

public UTFBlockLexiconBuilder(java.lang.String pathname,
                              java.lang.String prefix)
A default constructor which is given a pathname in which the temporary lexicons will be stored.

Parameters:
pathname - String the name of the path in which the temporary and final lexicons will be stored.
prefix - String the file component of the lexicons
Method Detail

finishedDirectIndexBuild

public void finishedDirectIndexBuild()
The method that performs processing of the lexicon after the creation of the direct index has been completed. It flushes to disk the current temporary lexicon, and it starts the merging of the temporary lexicons and the creation of the lexicon index.

Overrides:
finishedDirectIndexBuild in class BlockLexiconBuilder

Terrier IR Platform
1.1.1

Terrier Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow