public final class IteratorAsPathQueryResult extends com.google.common.collect.AbstractIterator<T> implements PathQueryResult
Adapter class for using a BindingSetIteration as a PathQueryResult
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
PATH_VAR
Constructor and Description |
---|
IteratorAsPathQueryResult(CloseableIterator<Path> theIter,
List<String> theStartVars,
List<String> theEndVars,
List<String> theEdgeVars,
Runnable theOnClose,
Runnable theOnSuccess,
Function<Exception,RuntimeException> theOnError) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected T |
computeNext() |
List<String> |
getEdgeVariableNames() |
List<String> |
getPathEndVariableNames() |
List<String> |
getPathStartVariableNames() |
endOfData, hasNext, next, peek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 List<String> getPathStartVariableNames()
getPathStartVariableNames
in interface PathQueryResult
public List<String> getPathEndVariableNames()
getPathEndVariableNames
in interface PathQueryResult
public List<String> getEdgeVariableNames()
getEdgeVariableNames
in interface PathQueryResult
public void close() throws QueryExecutionFailure
close
in interface CloseableIterator<T>
close
in interface AutoCloseable
QueryExecutionFailure
protected T computeNext()
computeNext
in class com.google.common.collect.AbstractIterator<T>
Copyright © 2010-2016 Stardog Union. All Rights Reserved.