protected class SimplePostingInRun.PIRPostingIterator extends IterablePostingImpl
EOL| Constructor and Description |
|---|
SimplePostingInRun.PIRPostingIterator(int runShift) |
| Modifier and Type | Method and Description |
|---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator.
|
void |
close() |
boolean |
endOfPostings()
Status method to see if this posting list iterator has been finished
|
int |
getDocumentLength()
Return the length of the document for this posting.
|
int |
getFrequency()
Return the frequency of the term in the current document
|
int |
getId()
Return the id of the current posting.
|
int |
next()
Move this iterator to the next posting.
|
protected void |
readPostingNotDocid() |
void |
setId(int id)
It may be of benefit to update the frequency of the id in some applications.
|
nextpublic SimplePostingInRun.PIRPostingIterator(int runShift)
protected void readPostingNotDocid()
throws IOException
IOExceptionpublic int next()
throws IOException
IterablePostingIOExceptionpublic boolean endOfPostings()
IterablePostingpublic int getDocumentLength()
Postingpublic int getFrequency()
Postingpublic int getId()
Postingpublic void setId(int id)
Postingpublic void close()
throws IOException
IOExceptionpublic WritablePosting asWritablePosting()
PostingTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow