Package com.stardog.stark.query

# Interface BooleanQueryResult

All Superinterfaces:
  `AutoCloseable`, `CloseableIterator<Boolean>`, `Iterator<Boolean>`, `QueryResult<Boolean>`

All Known Implementing Classes:
  `IteratorAsBooleanQueryResult`

public interface BooleanQueryResult extends QueryResult<Boolean>

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; `true` or `false` so only one result should ever be expected. Use `booleanValue()` 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 Type
  Method
  Description
  `default boolean`
  `booleanValue()`
  Returns the single result and closes the result set

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, remove`

  ### Methods inherited from interface com.stardog.stark.query.QueryResult

  `close, hasNext, metadata, next, stream`

- ## 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