public class BasicIterablePostingDocidOnly extends BasicIterablePosting
BasicIterablePosting
in that only ids are
recorded.bitFileReader, doi, numEntries
dl, id, tf
EOL
Constructor and Description |
---|
BasicIterablePostingDocidOnly()
Create a new posting iterator
|
BasicIterablePostingDocidOnly(BitIn _bitFileReader,
int _numEntries,
DocumentIndex _doi)
Create a new posting iterator
|
Modifier and Type | Method and Description |
---|---|
int |
next()
Move this iterator to the next posting.
|
asWritablePosting, close, endOfPostings, getDocumentLength, next
getFrequency, getId, readFields, setDocumentLength, setId, setTf, toString, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFrequency, getId, setId
public BasicIterablePostingDocidOnly()
public BasicIterablePostingDocidOnly(BitIn _bitFileReader, int _numEntries, DocumentIndex _doi) throws IOException
_bitFileReader
- BitIn to read the postings from_numEntries
- number of postings in the list_doi
- document index to use to satisfy getDocumentLength()IOException
- thrown in an IO exception occurspublic int next() throws IOException
next
in interface IterablePosting
next
in class BasicIterablePosting
IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow