public class ANDIterablePosting extends IterablePostingImpl
Modifier and Type | Field and Description |
---|---|
protected int |
currentId |
protected int |
frequency |
protected IterablePosting[] |
ips |
protected int |
termCount |
END_OF_LIST, EOL
Constructor and Description |
---|
ANDIterablePosting(IterablePosting[] _ips,
EntryStatistics[] _p) |
ANDIterablePosting(IterablePosting[] _ips,
Pointer[] _p) |
Modifier and Type | Method and Description |
---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator.
|
protected boolean |
calculateFrequency()
returns true if the document matches
|
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)
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.
|
protected int currentId
protected IterablePosting[] ips
protected final int termCount
protected int frequency
public ANDIterablePosting(IterablePosting[] _ips, EntryStatistics[] _p) throws IOException
IOException
public ANDIterablePosting(IterablePosting[] _ips, Pointer[] _p) throws IOException
IOException
public int getId()
Posting
public int getFrequency()
Posting
public int getDocumentLength()
Posting
public void setId(int id)
Posting
public int next(int targetID) throws IOException
IterablePostingImpl
next
in interface IterablePosting
next
in class IterablePostingImpl
targetID
- id of the posting to find in this posting list.IOException
public int next() throws IOException
IterablePosting
IOException
protected boolean calculateFrequency()
public boolean endOfPostings()
IterablePosting
public void close() throws IOException
IOException
public WritablePosting asWritablePosting()
Posting
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow