org.terrier.structures
Class BlockDirectIndexInputStream
java.lang.Object
org.terrier.structures.BitPostingIndexInputStream
org.terrier.structures.DirectIndexInputStream
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
Fields inherited from class org.terrier.structures.BitPostingIndexInputStream |
currentEntryCount, currentFile, currentPointer, doi, entriesSkipped, fieldCount, file, fileCount, index, logger, pointerList, postingConstructor, postingIteratorClass, structureName |
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 |
DocumentBlockCountDelta
protected int DocumentBlockCountDelta
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
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