public interface BooleanQueryResult extends org.openrdf.query.QueryResult<Boolean>
An analog to
this represents the result to a Boolean/Ask query. Normally this has been represented as a single primitive
boolean result value. Using a result based object here while inconvenient in some cases is preferable in
the cases where you want to treat all result types as the same, that is, now all queries return something
that is a
QueryResult. Further, since it's no longer a primitive value, it opens up the door for
letting you set a timeout and/or kill a query via the returned result object, something you cannot do when
its *just* a boolean primitive.
This object will return the result of a boolean query. There will always be a single result;
Iteration.hasNext() is guaranteed to return a
true value the first time. This single value
will be the boolean result of the query. So you can always call
Iteration.next() on one of these results
Iteration.hasNext() if its the first call to next.
Copyright © 2010-2016 Stardog Union. All Rights Reserved.