org.terrier.structures.postings
Class IterablePostingImpl
java.lang.Object
org.terrier.structures.postings.IterablePostingImpl
- All Implemented Interfaces:
- Closeable, IterablePosting, Posting
- Direct Known Subclasses:
- ANDIterablePosting, ArrayOfIdsIterablePosting, DocumentPostingList.postingIterator, ORIterablePosting, SimplePostingInRun.PIRPostingIterator
public abstract class IterablePostingImpl
- extends Object
- implements IterablePosting
A base implementation of an IterablePosting, that provides
a base implementation of next(int) method.
- Since:
- 3.0
- Author:
- Craig Macdonald
Method Summary |
int |
next(int target)
This implementation of next(int) which uses next() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IterablePostingImpl
public IterablePostingImpl()
next
public int next(int target)
throws IOException
- This implementation of next(int) which uses next()
- Specified by:
next
in interface IterablePosting
- Parameters:
target
- id of the posting to find in this postingn list.
- Returns:
- id of the posting found, or EOL if end of posting list.
- Throws:
IOException
Terrier 3.6. Copyright © 2004-2011 University of Glasgow