org.terrier.structures
Class BlockInvertedIndexInputStream

java.lang.Object
  extended by org.terrier.structures.BitPostingIndexInputStream
      extended by org.terrier.structures.InvertedIndexInputStream
          extended by org.terrier.structures.BlockInvertedIndexInputStream
All Implemented Interfaces:
Closeable, Iterator<IterablePosting>, PostingIndexInputStream, Skipable

public class BlockInvertedIndexInputStream
extends InvertedIndexInputStream

Reads a BlockInvertedIndex as a stream

Since:
2.0
Author:
Craig Macdonald

Field Summary
protected  int DocumentBlockCountDelta
           
 
Fields inherited from class org.terrier.structures.BitPostingIndexInputStream
currentEntryCount, currentFile, currentPointer, doi, entriesSkipped, fieldCount, file, fileCount, index, logger, pointerList, postingConstructor, postingIteratorClass, structureName
 
Constructor Summary
BlockInvertedIndexInputStream(Index _index, String _structureName)
          Construct an instance of the class with
BlockInvertedIndexInputStream(Index _index, String _structureName, Class<? extends IterablePosting> _postingImplementation)
          Construct an instance of the class with
BlockInvertedIndexInputStream(Index _index, String structureName, Iterator<? extends LexiconEntry> lexInputStream)
          Construct an instance of the class with
BlockInvertedIndexInputStream(Index _index, String structureName, Iterator<? extends LexiconEntry> lexInputStream, Class<? extends IterablePosting> _postingIteratorClass)
          Construct an instance of the class with
 
Method Summary
protected  int[][] getNextDocuments(BitIndexPointer pointer)
          Get the set of documents for the given term pointer
 
Methods inherited from class org.terrier.structures.InvertedIndexInputStream
getNextDocuments
 
Methods inherited from class org.terrier.structures.BitPostingIndexInputStream
_next, close, getCurrentPointer, getDocumentIndex, getEntriesSkipped, getFilename, getFilename, getNextPostings, getNumberOfCurrentPostings, getPos, hasNext, loadPostingIterator, next, print, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DocumentBlockCountDelta

protected int DocumentBlockCountDelta
Constructor Detail

BlockInvertedIndexInputStream

public BlockInvertedIndexInputStream(Index _index,
                                     String _structureName,
                                     Class<? extends IterablePosting> _postingImplementation)
                              throws IOException
Construct an instance of the class with

Parameters:
_index -
_structureName -
_postingImplementation -
Throws:
IOException

BlockInvertedIndexInputStream

public BlockInvertedIndexInputStream(Index _index,
                                     String structureName,
                                     Iterator<? extends LexiconEntry> lexInputStream,
                                     Class<? extends IterablePosting> _postingIteratorClass)
                              throws IOException
Construct an instance of the class with

Parameters:
_index -
structureName -
lexInputStream -
_postingIteratorClass -
Throws:
IOException

BlockInvertedIndexInputStream

public BlockInvertedIndexInputStream(Index _index,
                                     String structureName,
                                     Iterator<? extends LexiconEntry> lexInputStream)
                              throws IOException
Construct an instance of the class with

Parameters:
_index -
structureName -
lexInputStream -
Throws:
IOException

BlockInvertedIndexInputStream

public BlockInvertedIndexInputStream(Index _index,
                                     String _structureName)
                              throws IOException
Construct an instance of the class with

Parameters:
_index -
_structureName -
Throws:
IOException
Method Detail

getNextDocuments

protected int[][] getNextDocuments(BitIndexPointer pointer)
                            throws IOException
Description copied from class: InvertedIndexInputStream
Get the set of documents for the given term pointer

Overrides:
getNextDocuments in class InvertedIndexInputStream
Parameters:
pointer - for the number of documents
Returns:
the integer form of the postings
Throws:
IOException


Terrier 3.6. Copyright © 2004-2011 University of Glasgow