|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.aq.invertedindex.core.Postlist<V>
public class Postlist<V extends Value>
A class of a iterable read-only postlist.
Nested Class Summary | |
---|---|
static class |
Postlist.Head
A class representing the head of a postlist, that contains some meta-information. |
Method Summary | |
---|---|
void |
deleteNative()
Deletes the underlying native object. |
Postlist.Head |
getHead()
Returns the Postlist.Head of this postlist with some meta information. |
boolean |
isEmpty()
Checks if the postlist is empty. |
java.util.Iterator<V> |
iterator()
|
void |
rewind()
Set the internal iterator to the beginning. |
int |
size()
Get the number of entries. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.util.Iterator<V> iterator()
iterator
in interface java.lang.Iterable<V extends Value>
public void deleteNative()
Deletes the underlying native object. This method has to be called if
the postlist needs not to be used any longer. Please look at the usage
code UsingSearcher
how and when to call this method.
Remember that an instance of Postlist
is always coupled with
a native object that is not observed by the Java garbage collector.
Forgetting this results in an out-of-memory sooner or later.
public Postlist.Head getHead()
Postlist.Head
of this postlist with some meta information.
Postlist.Head
public boolean isEmpty()
public int size()
public void rewind()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |