Package com.stardog.stark.query
Interface BooleanQueryResult
- All Superinterfaces:
AutoCloseable,CloseableIterator<Boolean>,Iterator<Boolean>,QueryResult<Boolean>
- All Known Implementing Classes:
IteratorAsBooleanQueryResult
Result of a `boolean` query.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
- Implementation Notes:
- While results are represented as a
Stream<Boolean>there is only a single result for a boolean query;trueorfalseso only one result should ever be expected. UsebooleanValue()to obtain the single result.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T> -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns the single result and closes the result setMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
booleanValue
default boolean booleanValue()Returns the single result and closes the result set- Returns:
- the result
- Implementation Notes:
- The result set is closed as a side effect of this call
-