Package com.complexible.common.rdf.query
Class IteratorAsBooleanQueryResult
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<T>
-
- com.complexible.common.rdf.query.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 aBooleanQueryResult
.- Since:
- 1.2
- Author:
- Michael Grove
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.Boolean
computeNext()
-
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.stardog.stark.query.BooleanQueryResult
booleanValue
-
-
-
-
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)
-
-
Method Detail
-
computeNext
public java.lang.Boolean computeNext()
-
close
public void close() throws QueryExecutionFailure
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceCloseableIterator<T>
- Throws:
QueryExecutionFailure
-
-