Interface TupleQueryResult
- All Superinterfaces:
AutoCloseable, CloseableIteration<BindingSet>, Iterable<BindingSet>, Iterator<BindingSet>, QueryResult<BindingSet>
- All Known Implementing Classes:
BackgroundTupleResult, CachedTupleQueryResult, CleanerTupleQueryResult, IteratingTupleQueryResult, MutableTupleQueryResult, ReusableTupleQueryResult
A representation of a variable-binding query result as a sequence of
BindingSet objects. Each query result
consists of zero or more solutions, each of which represents a single query solution as a set of bindings. Note: take
care to always close a TupleQueryResult after use to free any resources it keeps hold of.- Author:
- jeen
-
Field Summary
Fields inherited from interface CloseableIteration
EMPTY_STATEMENT_ITERATION -
Method Summary
Modifier and TypeMethodDescriptionGets the names of the bindings, in order of projection.Methods inherited from interface CloseableIteration
closeModifier and TypeMethodDescriptionvoidclose()Closes this iteration, freeing any resources that it is holding.Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Iterator
forEachRemaining, removeMethods inherited from interface QueryResult
hasNext, iterator, next, streamModifier and TypeMethodDescriptionbooleanhasNext()Returnstrueif the query result has more elements.default Iterator<BindingSet> iterator()next()Returns the next element in the query result.default Stream<BindingSet> stream()Convert the result elements to a JavaStream.
-
Method Details
-
getBindingNames
Gets the names of the bindings, in order of projection.- Returns:
- The binding names, in order of projection.
- Throws:
QueryEvaluationException
-