Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures
Class BlockInvertedIndexInputStream

java.lang.Object
  extended by uk.ac.gla.terrier.structures.InvertedIndexInputStream
      extended by uk.ac.gla.terrier.structures.BlockInvertedIndexInputStream
All Implemented Interfaces:
Closeable, IndexConfigurable

public class BlockInvertedIndexInputStream
extends InvertedIndexInputStream
implements IndexConfigurable

Reads a BlockInvertedIndex as a stream

Since:
2.0
Version:
$Revision: 1.4 $
Author:
Craig Macdonald

Constructor Summary
BlockInvertedIndexInputStream(BitIn invFile, LexiconInputStream lis)
           
BlockInvertedIndexInputStream(java.lang.String filename, LexiconInputStream lis)
          Make a new BlockInvertedIndexInputStream from the specified filename.
BlockInvertedIndexInputStream(java.lang.String path, java.lang.String prefix, LexiconInputStream lis)
          Make a new BlockInvertedIndexInputStream from the specified path/prefix combo.
 
Method Summary
 void print()
           
 void setIndex(Index i)
          let it know which index to use
 
Methods inherited from class uk.ac.gla.terrier.structures.InvertedIndexInputStream
close, getNextDocuments, reOpenLegacyBitFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockInvertedIndexInputStream

public BlockInvertedIndexInputStream(java.lang.String path,
                                     java.lang.String prefix,
                                     LexiconInputStream lis)
                              throws java.io.IOException
Make a new BlockInvertedIndexInputStream from the specified path/prefix combo. The LexiconInputStream is required to determine the offsets and the document frequency - ie number of postings for each term.

Throws:
java.io.IOException

BlockInvertedIndexInputStream

public BlockInvertedIndexInputStream(java.lang.String filename,
                                     LexiconInputStream lis)
                              throws java.io.IOException
Make a new BlockInvertedIndexInputStream from the specified filename. The LexiconInputStream is required to determine the offsets and the document frequency - ie number of postings for each term.

Parameters:
filename - Location of the inverted file to open
Throws:
java.io.IOException

BlockInvertedIndexInputStream

public BlockInvertedIndexInputStream(BitIn invFile,
                                     LexiconInputStream lis)
                              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setIndex

public void setIndex(Index i)
let it know which index to use

Specified by:
setIndex in interface IndexConfigurable
Parameters:
i - Index object to use

print

public void print()
Overrides:
print in class InvertedIndexInputStream

Terrier IR Platform
2.2.1

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