Terrier IR Platform
1.1.1

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

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

public class UTFLexiconBuilder
extends LexiconBuilder

Builds temporary lexicons during indexing a collection and merges them when the indexing of a collection has finished.

Version:
$Revision: 1.13 $
Author:
Craig Macdonald & Vassilis Plachouras

Constructor Summary
UTFLexiconBuilder()
          A default constructor of the class.
UTFLexiconBuilder(java.lang.String pathname, java.lang.String prefix)
          Creates an instance of the class, given the path to save the temporary lexicons.
 
Method Summary
 void finishedDirectIndexBuild()
          Processing the lexicon after finished creating the direct and document indexes.
 
Methods inherited from class uk.ac.gla.terrier.structures.indexing.LexiconBuilder
addDocumentTerms, addDocumentTerms, addTemporaryLexicon, createLexiconHash, createLexiconHash, createLexiconIndex, createLexiconIndex, finishedInvertedIndexBuild, getFinalNumberOfTerms, getLexInputStream, getLexOutputStream, main, merge
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTFLexiconBuilder

public UTFLexiconBuilder()
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.


UTFLexiconBuilder

public UTFLexiconBuilder(java.lang.String pathname,
                         java.lang.String prefix)
Creates an instance of the class, given the path to save the temporary lexicons.

Parameters:
pathname - String the path to save the temporary and final lexicons.
prefix - String the filename component of the lexicons
Method Detail

finishedDirectIndexBuild

public void finishedDirectIndexBuild()
Processing the lexicon after finished creating the direct and document indexes.

Overrides:
finishedDirectIndexBuild in class LexiconBuilder

Terrier IR Platform
1.1.1

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