Terrier IR Platform
2.2.1

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

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.LexiconBuilder
      extended by uk.ac.gla.terrier.structures.indexing.BlockLexiconBuilder
Direct Known Subclasses:
UTFBlockLexiconBuilder

public class BlockLexiconBuilder
extends LexiconBuilder

Builds a block lexicon using block frequencies.

Version:
$Revision: 1.32 $
Author:
Douglas Johnson, Vassilis Plachouras & Craig Macdonald

Constructor Summary
BlockLexiconBuilder()
          A default constructor of the class.
BlockLexiconBuilder(Index i)
           
BlockLexiconBuilder(java.lang.String pathname, java.lang.String prefix)
          Creates an instance of the class, given the path to save the final and temporary lexicons.
 
Method Summary
 void finishedDirectIndexBuild()
          The method that performs processing of the lexicon after the creation of the direct index has been completed.
static void main(java.lang.String[] args)
           
 
Methods inherited from class uk.ac.gla.terrier.structures.indexing.LexiconBuilder
addDocumentTerms, addTemporaryLexicon, addTerm, createLexiconHash, createLexiconHash, createLexiconHash, createLexiconHash, createLexiconIndex, createLexiconIndex, createLexiconIndex, createLexiconIndex, finishedInvertedIndexBuild, flush, getFinalNumberOfTerms, merge
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockLexiconBuilder

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


BlockLexiconBuilder

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

Parameters:
pathname - String the path to save the temporary lexicons.

BlockLexiconBuilder

public BlockLexiconBuilder(Index i)
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 LexiconBuilder

main

public static void main(java.lang.String[] args)

Terrier IR Platform
2.2.1

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