public final class IteratorAsPathQueryResult extends Object implements PathQueryResult
Adapter class for using a BindingSetIteration as a PathQueryResult
| Constructor and Description |
|---|
IteratorAsPathQueryResult(Iterator<Path> theIter,
List<String> theStartVars,
List<String> theEndVars,
List<String> theEdgeVars) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the query results and return any resources in use back to the system.
|
List<String> |
getEdgeVariableNames() |
List<String> |
getPathEndVariableNames() |
List<String> |
getPathStartVariableNames() |
boolean |
hasNext() |
Path |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmetadata, streamforEachRemainingpublic List<String> getPathStartVariableNames()
getPathStartVariableNames in interface PathQueryResultpublic List<String> getPathEndVariableNames()
getPathEndVariableNames in interface PathQueryResultpublic List<String> getEdgeVariableNames()
getEdgeVariableNames in interface PathQueryResultpublic void close()
throws QueryExecutionFailure
close in interface QueryResult<Path>close in interface AutoCloseableQueryExecutionFailurepublic boolean hasNext()
throws QueryExecutionFailure
hasNext in interface QueryResult<Path>hasNext in interface Iterator<Path>QueryExecutionFailurepublic Path next() throws QueryExecutionFailure
next in interface QueryResult<Path>next in interface Iterator<Path>QueryExecutionFailurepublic void remove()
throws QueryExecutionFailure
remove in interface Iterator<Path>QueryExecutionFailureCopyright © 2010-2016 Stardog Union. All Rights Reserved.