public class ORIterablePosting extends IterablePostingImpl
FieldORIterablePosting
,
BlockORIterablePosting
,
BlockFieldORIterablePosting
EOL
Constructor and Description |
---|
ORIterablePosting(IterablePosting[] ips)
Create a Basic ORIterablePosting from the specified postings
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPosting(Posting p) |
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
|
protected void |
firstPosting(Posting p) |
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.
|
static ORIterablePosting |
mergePostings(IterablePosting[] ips)
Factory method to create an appropriate ORIterablePosting from the specified IterablePostings.
|
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 ORIterablePosting(IterablePosting[] ips) throws IOException
IOException
public static ORIterablePosting mergePostings(IterablePosting[] ips) throws IOException
IOException
public boolean endOfPostings()
protected void firstPosting(Posting p)
protected void addPosting(Posting p)
public int next() throws IOException
IOException
public WritablePosting asWritablePosting()
public int getDocumentLength()
public int getFrequency()
public int getId()
public void setId(int _id)
public void close() throws IOException
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow