org.terrier.structures
Class BlockInvertedIndexInputStream
java.lang.Object
org.terrier.structures.BitPostingIndexInputStream
org.terrier.structures.InvertedIndexInputStream
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
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, 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 |
DocumentBlockCountDelta
protected int DocumentBlockCountDelta
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
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