org.terrier.structures
Interface PostingIndexInputStream

All Superinterfaces:
java.io.Closeable, java.util.Iterator<IterablePosting>
All Known Implementing Classes:
BitPostingIndexInputStream, BlockDirectIndexInputStream, BlockInvertedIndexInputStream, DirectIndexInputStream, InvertedIndexInputStream

public interface PostingIndexInputStream
extends java.io.Closeable, java.util.Iterator<IterablePosting>

Interface for reading postings from an input stream


Method Summary
 Pointer getCurrentPointer()
          Returns the pointer associated with the current postings being accessed
 int getEntriesSkipped()
          Returns the number of entries that were skipped during a call to the next().
 IterablePosting getNextPostings()
          Return the next IterablePosting object, or null if none defined.
 int getNumberOfCurrentPostings()
          Returns the number of postings in the current IterablePosting object
 
Methods inherited from interface java.io.Closeable
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getNextPostings

IterablePosting getNextPostings()
                                throws java.io.IOException
Return the next IterablePosting object, or null if none defined. Use this method instead of hasNext() and next().

Returns:
IterablePosting postings for next object
Throws:
java.io.IOException - if an I/O problem occurs.

getNumberOfCurrentPostings

int getNumberOfCurrentPostings()
Returns the number of postings in the current IterablePosting object


getCurrentPointer

Pointer getCurrentPointer()
Returns the pointer associated with the current postings being accessed


getEntriesSkipped

int getEntriesSkipped()
Returns the number of entries that were skipped during a call to the next().

Returns:
int the number of entries skipped.


Terrier 3.5. Copyright © 2004-2011 University of Glasgow