org.terrier.structures
Class BlockDirectIndexInputStream

java.lang.Object
  extended by org.terrier.structures.BitPostingIndexInputStream
      extended by org.terrier.structures.DirectIndexInputStream
          extended by org.terrier.structures.BlockDirectIndexInputStream
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<IterablePosting>, PostingIndexInputStream, Skipable

public class BlockDirectIndexInputStream
extends DirectIndexInputStream

This class reads the block field direct index structure sequentially, as an input stream.

Author:
Douglas Johnson, Vassilis Plachouras
See Also:
BlockDirectIndex

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
BlockDirectIndexInputStream(Index index, java.lang.String structureName)
          Constructs an index of the class with
BlockDirectIndexInputStream(Index index, java.lang.String structureName, java.lang.Class<? extends IterablePosting> postingClass)
          Constructs an index of the class with
 
Method Summary
 int[][] getNextTerms(BitIndexPointer pointer)
          Get the terms for the next document at the pointer specified
 
Methods inherited from class org.terrier.structures.DirectIndexInputStream
getDocumentIndex, getNextTerms
 
Methods inherited from class org.terrier.structures.BitPostingIndexInputStream
_next, close, getCurrentPointer, 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

BlockDirectIndexInputStream

public BlockDirectIndexInputStream(Index index,
                                   java.lang.String structureName)
                            throws java.io.IOException
Constructs an index of the class with

Parameters:
index -
structureName -
Throws:
java.io.IOException

BlockDirectIndexInputStream

public BlockDirectIndexInputStream(Index index,
                                   java.lang.String structureName,
                                   java.lang.Class<? extends IterablePosting> postingClass)
                            throws java.io.IOException
Constructs an index of the class with

Parameters:
index -
structureName -
postingClass -
Throws:
java.io.IOException
Method Detail

getNextTerms

public int[][] getNextTerms(BitIndexPointer pointer)
                     throws java.io.IOException
Get the terms for the next document at the pointer specified

Overrides:
getNextTerms in class DirectIndexInputStream
Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow