public class MultiDirectIterablePosting extends Object implements IterablePosting
END_OF_LIST, EOL| Constructor and Description |
|---|
MultiDirectIterablePosting(IterablePosting posting,
MultiLexicon lex,
int shard) |
| 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.
|
int |
next(int targetId)
Move this iterator to the posting with specified id, or next posting after that.
|
static MultiDirectIterablePosting |
of(IterablePosting ip,
MultiLexicon lex,
int shard,
boolean blocks,
boolean fields) |
void |
setId(int id)
It may be of benefit to update the frequency of the id in some applications.
|
public MultiDirectIterablePosting(IterablePosting posting, MultiLexicon lex, int shard)
public int getId()
Postingpublic int getFrequency()
PostinggetFrequency in interface Postingpublic int getDocumentLength()
PostinggetDocumentLength in interface Postingpublic void setId(int id)
Postingpublic WritablePosting asWritablePosting()
PostingasWritablePosting in interface Postingpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic int next()
throws IOException
IterablePostingnext in interface IterablePostingIOExceptionpublic int next(int targetId)
throws IOException
IterablePostingnext in interface IterablePostingtargetId - id of the posting to find in this posting list.IOExceptionpublic boolean endOfPostings()
IterablePostingendOfPostings in interface IterablePostingpublic static MultiDirectIterablePosting of(IterablePosting ip, MultiLexicon lex, int shard, boolean blocks, boolean fields)
Terrier Information Retrieval Platform 5.2. Copyright © 2004-2019, University of Glasgow