Package org.terrier.structures.postings
Class IterablePostingImpl
- java.lang.Object
-
- org.terrier.structures.postings.IterablePostingImpl
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,IterablePosting
,Posting
- Direct Known Subclasses:
ANDIterablePosting
,ArrayOfIdsIterablePosting
,DocumentPostingList.postingIterator
,FieldOnlyIterablePosting
,MemoryDirectIterablePosting
,MemoryIterablePosting
,MultiIterablePosting
,ORIterablePosting
public abstract class IterablePostingImpl extends java.lang.Object implements IterablePosting
A base implementation of an IterablePosting, that provides a base implementation of next(int) method.- Since:
- 3.0
- Author:
- Craig Macdonald
-
-
Field Summary
-
Fields inherited from interface org.terrier.structures.postings.IterablePosting
END_OF_LIST, EOL
-
-
Constructor Summary
Constructors Constructor Description IterablePostingImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
Methods inherited from interface org.terrier.structures.postings.IterablePosting
endOfPostings, next
-
Methods inherited from interface org.terrier.structures.postings.Posting
asWritablePosting, getDocumentLength, getFrequency, getId, setId
-
-
-
-
Method Detail
-
next
public int next(int target) throws java.io.IOException
This implementation of next(int) which uses next()- Specified by:
next
in interfaceIterablePosting
- Parameters:
target
- id of the posting to find in this posting list.- Returns:
- id of the posting found, or EOL if end of posting list is reached.
- Throws:
java.io.IOException
-
-