public class BasicIterablePostingDocidOnly extends BasicIterablePosting
BasicIterablePosting
in that only ids are
recorded.bitFileReader, doi, numEntries
dl, id, tf
END_OF_LIST, 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, toString
getFrequency, getId, readFields, setDocumentLength, setId, setTf, 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 Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow