|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Result<K,T extends Persistent>
A result to a Query
. Objects in the result set can be
iterated by calling next()
, get()
and getKey()
.
Method Summary | |
---|---|
void |
close()
|
T |
get()
Returns the current object. |
DataStore<K,T> |
getDataStore()
Returns the DataStore, that this Result is associated with. |
K |
getKey()
Returns the current key. |
Class<K> |
getKeyClass()
Returns the class of the keys |
long |
getOffset()
Returns the number of times next() is called with return value true. |
Class<T> |
getPersistentClass()
Returns the class of the persistent objects |
float |
getProgress()
Returns how far along the result has iterated, a value between 0 and 1. |
Query<K,T> |
getQuery()
Returns the Query object for this Result. |
boolean |
next()
Advances to the next element and returns false if at end. |
Method Detail |
---|
DataStore<K,T> getDataStore()
Query<K,T> getQuery()
boolean next() throws IOException
IOException
K getKey()
T get()
Class<K> getKeyClass()
Class<T> getPersistentClass()
long getOffset()
float getProgress() throws IOException
IOException
void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |