public class MemoryInvertedIndex.InvertedIterator extends Object implements PostingIndexInputStream
Constructor and Description |
---|
MemoryInvertedIndex.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() |
public MemoryInvertedIndex.InvertedIterator()
public boolean hasNext()
hasNext
in interface Iterator<IterablePosting>
public IterablePosting next()
next
in interface Iterator<IterablePosting>
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void remove()
remove
in interface Iterator<IterablePosting>
public IterablePosting getNextPostings() throws IOException
PostingIndexInputStream
getNextPostings
in interface PostingIndexInputStream
IOException
- if an I/O problem occurs.public int getNumberOfCurrentPostings()
PostingIndexInputStream
getNumberOfCurrentPostings
in interface PostingIndexInputStream
public Pointer getCurrentPointer()
PostingIndexInputStream
getCurrentPointer
in interface PostingIndexInputStream
public int getEntriesSkipped()
PostingIndexInputStream
getEntriesSkipped
in interface PostingIndexInputStream
public void print()
PostingIndexInputStream
print
in interface PostingIndexInputStream
Terrier 4.0. Copyright © 2004-2014 University of Glasgow