public final class IteratorAsBooleanQueryResult extends com.google.common.collect.AbstractIterator<T> implements BooleanQueryResult
Adapter from an Iterator
produced during query evaluation to a BooleanQueryResult
.
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
Constructor and Description |
---|
IteratorAsBooleanQueryResult(CloseableIterator<Boolean> theIterator,
Runnable theOnEnd,
Runnable theOnSuccess,
Function<Exception,RuntimeException> theOnFailure) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Boolean |
computeNext() |
endOfData, hasNext, next, peek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
booleanValue
close, hasNext, metadata, next, stream
closeQuietly, collect, concat, concat, concat, empty, filter, first, isEmpty, limit, map, offset, onClose, singleton, size, toCloseable, toCloseable, toCloseable, toList, toSet, transform
forEachRemaining, remove
public IteratorAsBooleanQueryResult(CloseableIterator<Boolean> theIterator, Runnable theOnEnd, Runnable theOnSuccess, Function<Exception,RuntimeException> theOnFailure)
public Boolean computeNext()
public void close() throws QueryExecutionFailure
close
in interface CloseableIterator<T>
close
in interface AutoCloseable
QueryExecutionFailure
Copyright © 2010-2016 Stardog Union. All Rights Reserved.