org.terrier.structures.postings
Class BasicIterablePostingDocidOnly
java.lang.Object
org.terrier.structures.postings.BasicPostingImpl
org.terrier.structures.postings.BasicIterablePosting
org.terrier.structures.postings.BasicIterablePostingDocidOnly
- All Implemented Interfaces:
- Closeable, Serializable, org.apache.hadoop.io.Writable, IterablePosting, Posting, WritablePosting
public class BasicIterablePostingDocidOnly
- extends BasicIterablePosting
Posting iterator class that only returns identifiers, not frequencies.
This differs from BasicIterablePosting
in that only ids are
recorded.
- Since:
- 3.0
- Author:
- Craig Macdonald
- See Also:
- Serialized Form
Method Summary |
int |
next()
Move this iterator to the next posting. |
BasicIterablePostingDocidOnly
public BasicIterablePostingDocidOnly()
- Create a new posting iterator
BasicIterablePostingDocidOnly
public BasicIterablePostingDocidOnly(BitIn _bitFileReader,
int _numEntries,
DocumentIndex _doi)
throws IOException
- Create a new posting iterator
- Parameters:
_bitFileReader
- BitIn to read the postings from_numEntries
- number of postings in the list_doi
- document index to use to satisfy getDocumentLength()
- Throws:
IOException
- thrown in an IO exception occurs
next
public int next()
throws IOException
- Move this iterator to the next posting.
- Specified by:
next
in interface IterablePosting
- Overrides:
next
in class BasicIterablePosting
- Returns:
- id of next posting, or EOL if end of posting list
- Throws:
IOException
Terrier 3.6. Copyright © 2004-2011 University of Glasgow