|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Result<T>
Super type of all query result types (TupleQueryResult, GraphQueryResult, etc.).
| Method Summary | ||
|---|---|---|
|
addTo(C collection)
|
|
List<T> |
asList()
|
|
Set<T> |
asSet()
|
|
void |
close()
Closes this cursor, freeing any resources that it is holding. |
|
boolean |
hasNext()
|
|
T |
next()
Returns the next element from this cursor. |
|
T |
singleResult()
|
|
String |
toString()
Describes this cursor (recursively for any wrapped cursors). |
|
| Methods inherited from interface info.aduna.iteration.Iteration |
|---|
remove |
| Method Detail |
|---|
T next()
throws QueryEvaluationException
next in interface Iteration<T,QueryEvaluationException>QueryEvaluationException
void close()
throws QueryEvaluationException
next() will
return null.
Note to implementors: this method is also used to abort long running
evaluations. It should be implemented in such a way that it can be called
concurrently with next() and that it stops evaluation as soon as
possible. Calls to next() that are already in progress are
allowed to still return results, but after returning from close()
, the cursor must not produce any more results.
close in interface CloseableIteration<T,QueryEvaluationException>QueryEvaluationExceptionString toString()
toString in class Object
boolean hasNext()
throws QueryEvaluationException
hasNext in interface Iteration<T,QueryEvaluationException>QueryEvaluationException
T singleResult()
throws QueryEvaluationException,
NoResultException,
MultipleResultException
QueryEvaluationException
NoResultException
MultipleResultException
List<T> asList()
throws QueryEvaluationException
QueryEvaluationException
Set<T> asSet()
throws QueryEvaluationException
QueryEvaluationException
<C extends Collection<? super T>> C addTo(C collection)
throws QueryEvaluationException
QueryEvaluationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||