public class MemoryInvertedIndex.InvertedIterator extends Object implements PostingIndexInputStream
| Constructor and Description |
|---|
InvertedIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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
|
boolean |
hasNext() |
IterablePosting |
next() |
void |
print()
Renders the entire structure to stdout
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
hasNext in interface Iterator<IterablePosting>public IterablePosting next()
next in interface Iterator<IterablePosting>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void remove()
remove in interface Iterator<IterablePosting>public IterablePosting getNextPostings() throws IOException
PostingIndexInputStreamgetNextPostings in interface PostingIndexInputStreamIOException - if an I/O problem occurs.public int getNumberOfCurrentPostings()
PostingIndexInputStreamgetNumberOfCurrentPostings in interface PostingIndexInputStreampublic Pointer getCurrentPointer()
PostingIndexInputStreamgetCurrentPointer in interface PostingIndexInputStreampublic int getEntriesSkipped()
PostingIndexInputStreamgetEntriesSkipped in interface PostingIndexInputStreampublic void print()
PostingIndexInputStreamprint in interface PostingIndexInputStreamTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow