Terrier IR Platform
2.2.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.16 $
Author:
Craig Macdonald & Vassilis Plachouras

Constructor Summary
UTFLexiconBuilder()
          Deprecated.  
UTFLexiconBuilder(Index i)
           
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.
 void finishedInvertedIndexBuild()
          Processing the lexicon after finished creating the inverted index.
 
Methods inherited from class uk.ac.gla.terrier.structures.indexing.LexiconBuilder
addDocumentTerms, addTemporaryLexicon, addTerm, createLexiconHash, createLexiconHash, createLexiconHash, createLexiconHash, createLexiconIndex, createLexiconIndex, createLexiconIndex, createLexiconIndex, flush, getFinalNumberOfTerms, main, merge
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTFLexiconBuilder

public UTFLexiconBuilder()
Deprecated. 

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

UTFLexiconBuilder

public UTFLexiconBuilder(Index i)
Method Detail

finishedDirectIndexBuild

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

Overrides:
finishedDirectIndexBuild in class LexiconBuilder

finishedInvertedIndexBuild

public void finishedInvertedIndexBuild()
Description copied from class: LexiconBuilder
Processing the lexicon after finished creating the inverted index.

Overrides:
finishedInvertedIndexBuild in class LexiconBuilder

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow