public class ORIterablePosting extends IterablePostingImpl
FieldORIterablePosting
,
BlockORIterablePosting
,
BlockFieldORIterablePosting
END_OF_LIST, 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.
|
int |
next(int target)
This implementation of next(int) which uses next()
|
void |
setId(int _id)
It may be of benefit to update the frequency of the id in some applications.
|
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 int next(int target) throws IOException
IterablePostingImpl
next
in interface IterablePosting
next
in class IterablePostingImpl
target
- id of the posting to find in this posting list.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 Platform 5.1. Copyright © 2004-2019, University of Glasgow