|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.postings.IterablePostingImpl org.terrier.structures.postings.ORIterablePosting
public class ORIterablePosting
An IterablePosting that combines more than one IterablePosting into a single IterablePosting. By doing so, multiple term's posting lists can appear as a singe posting list.
FieldORIterablePosting
,
BlockORIterablePosting
,
BlockFieldORIterablePosting
Field Summary |
---|
Fields inherited from interface org.terrier.structures.postings.IterablePosting |
---|
EOL |
Constructor Summary | |
---|---|
ORIterablePosting(IterablePosting[] ips)
Create a Basic ORIterablePosting from the specified postings |
Method Summary | |
---|---|
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. |
Methods inherited from class org.terrier.structures.postings.IterablePostingImpl |
---|
next |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ORIterablePosting(IterablePosting[] ips) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public static ORIterablePosting mergePostings(IterablePosting[] ips) throws java.io.IOException
java.io.IOException
public boolean endOfPostings()
protected void firstPosting(Posting p)
protected void addPosting(Posting p)
public int next() throws java.io.IOException
java.io.IOException
public WritablePosting asWritablePosting()
public int getDocumentLength()
public int getFrequency()
public int getId()
public void setId(int _id)
public void close() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |