Class IteratorAsBooleanQueryResult

  • All Implemented Interfaces:
    CloseableIterator<java.lang.Boolean>, BooleanQueryResult, QueryResult<java.lang.Boolean>, java.lang.AutoCloseable, java.util.Iterator<java.lang.Boolean>

    public final class IteratorAsBooleanQueryResult
    extends com.google.common.collect.AbstractIterator<T>
    implements BooleanQueryResult

    Adapter from an Iterator produced during query evaluation to a BooleanQueryResult.

    Since:
    1.2
    Author:
    Michael Grove
    • Constructor Detail

      • IteratorAsBooleanQueryResult

        public IteratorAsBooleanQueryResult​(CloseableIterator<java.lang.Boolean> theIterator,
                                            java.lang.Runnable theOnEnd,
                                            java.lang.Runnable theOnSuccess,
                                            java.util.function.Function<java.lang.Exception,​java.lang.RuntimeException> theOnFailure)