public interface IListReader extends IListItem, AutoCloseable
while (reader.next()) { do_what_you_like_with((IListItem) reader); }
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the reader.
|
long |
getPostings()
Return the number of items in the inverted list this object reads
(including removed ones).
|
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. |
String getTerm()
boolean next()
boolean skipTo(long uid)
uid
identification.uid
- the item to skip tovoid close()
close
in interface AutoCloseable
long getPostings()
Copyright © 2016 Egothor. All Rights Reserved.