|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IListReader
The IListReader interface represents an inverted list in read-only state. Here is some sample code for using such a reader:
while (reader.next()) { do_what_you_like_with((IListItem) reader); }
Method Summary | |
---|---|
void |
close()
Close the reader. |
long |
getPostings()
Return the number of items in the inverted list this object reads (including removed ones). |
java.lang.String |
getTerm()
Return the term that owns this inverted list. |
boolean |
next()
Move to the next item in the inverted list. |
boolean |
skipTo(long uid)
Skips (forward) in the inverted list to the first item with an ID greater than or equal to the given uid identification. |
Methods inherited from interface org.egothor.core.IListItem |
---|
openProx, uid, weight |
Method Detail |
---|
java.lang.String getTerm()
boolean next()
boolean skipTo(long uid)
uid
identification.
uid
- the item to skip to
void close()
long getPostings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |