public interface Result<K,T extends Persistent>
Modifier and Type | Method and Description |
---|---|
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.
|
DataStore<K,T> getDataStore()
Query<K,T> getQuery()
boolean next() throws Exception, IOException
Exception
IOException
K getKey()
T get()
Class<T> getPersistentClass()
long getOffset()
float getProgress() throws IOException, InterruptedException
IOException
InterruptedException
void close() throws IOException
IOException
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.