public class DirectIndexInputStream extends BitPostingIndexInputStream
DirectIndex
currentEntryCount, currentFile, currentPointer, doi, entriesSkipped, fieldCount, file, fileCount, index, logger, pointerList, postingConstructor, postingIteratorClass, structureName
Modifier | Constructor and Description |
---|---|
|
DirectIndexInputStream(IndexOnDisk index,
String structureName)
Deprecated.
Constructs an instance of the class with
|
|
DirectIndexInputStream(IndexOnDisk index,
String structureName,
Class<? extends IterablePosting> postingIterator)
Deprecated.
Constructs an instance of the class with
|
protected |
DirectIndexInputStream(IndexOnDisk _index,
String structureName,
Iterator<? extends BitIndexPointer> _pointerList,
Class<? extends IterablePosting> _postingIteratorClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected DocumentIndex |
getDocumentIndex(BitIndexPointer pointer)
Deprecated.
|
int[][] |
getNextTerms()
Deprecated.
One call returns all the data for one document - [0][] is term ids, [1][] is frequency, [2][] is fields.
|
int[][] |
getNextTerms(BitIndexPointer pointer)
Deprecated.
Get the terms for the next document at the pointer specified
|
_next, close, getCurrentPointer, getEntriesSkipped, getFilename, getFilename, getNextPostings, getNumberOfCurrentPostings, getPos, hasNext, loadPostingIterator, next, print, remove, skip
protected DirectIndexInputStream(IndexOnDisk _index, String structureName, Iterator<? extends BitIndexPointer> _pointerList, Class<? extends IterablePosting> _postingIteratorClass) throws IOException
IOException
public DirectIndexInputStream(IndexOnDisk index, String structureName, Class<? extends IterablePosting> postingIterator) throws IOException
index
- structureName
- postingIterator
- IOException
public DirectIndexInputStream(IndexOnDisk index, String structureName) throws IOException
index
- structureName
- IOException
public int[][] getNextTerms() throws IOException
IOException
- if an I/O error occurspublic int[][] getNextTerms(BitIndexPointer pointer) throws IOException
IOException
protected DocumentIndex getDocumentIndex(BitIndexPointer pointer)
getDocumentIndex
in class BitPostingIndexInputStream
Terrier 4.0. Copyright © 2004-2014 University of Glasgow