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:
java.io.Closeable, java.util.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, java.lang.String _structureName)
          Construct an instance of the class with
BlockInvertedIndexInputStream(Index _index, java.lang.String _structureName, java.lang.Class<? extends IterablePosting> _postingImplementation)
          Construct an instance of the class with
BlockInvertedIndexInputStream(Index _index, java.lang.String structureName, java.util.Iterator<? extends LexiconEntry> lexInputStream)
          Construct an instance of the class with
BlockInvertedIndexInputStream(Index _index, java.lang.String structureName, java.util.Iterator<? extends LexiconEntry> lexInputStream, java.lang.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,
                                     java.lang.String _structureName,
                                     java.lang.Class<? extends IterablePosting> _postingImplementation)
                              throws java.io.IOException
Construct an instance of the class with

Parameters:
_index -
_structureName -
_postingImplementation -
Throws:
java.io.IOException

BlockInvertedIndexInputStream

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

Parameters:
_index -
structureName -
lexInputStream -
_postingIteratorClass -
Throws:
java.io.IOException

BlockInvertedIndexInputStream

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

Parameters:
_index -
structureName -
lexInputStream -
Throws:
java.io.IOException

BlockInvertedIndexInputStream

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

Parameters:
_index -
_structureName -
Throws:
java.io.IOException
Method Detail

getNextDocuments

protected int[][] getNextDocuments(BitIndexPointer pointer)
                            throws java.io.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:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow