protected class DocumentPostingList.postingIterator extends IterablePostingImpl
END_OF_LIST, EOL
Constructor and Description |
---|
postingIterator(String[] _terms,
int[] _termIds) |
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.
|
void |
setId(int id)
It may be of benefit to update the frequency of the id in some applications.
|
next
public postingIterator(String[] _terms, int[] _termIds)
public WritablePosting asWritablePosting()
Posting
public int getDocumentLength()
Posting
public int getFrequency()
Posting
public int getId()
Posting
public void setId(int id)
Posting
public int next() throws IOException
IterablePosting
IOException
public boolean endOfPostings()
public void close() throws IOException
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow