public final class IteratorAsGraphQueryResult extends Object implements GraphQueryResult
Adapter class for using a StatementIteration as a Sesame GraphQueryResult.
| Constructor and Description |
|---|
IteratorAsGraphQueryResult(Iterator<Statement> theIter) |
IteratorAsGraphQueryResult(Iterator<Statement> theIter,
Iterable<Namespace> theNamespacesProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the query results and return any resources in use back to the system.
|
boolean |
hasNext() |
Namespaces |
namespaces()
The set of namespaces, if specified, that are to be used with the result set.
|
Statement |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoGraphmetadata, streamforEachRemaining@Nonnull public Namespaces namespaces()
namespaces in interface GraphQueryResultpublic void close()
close in interface QueryResult<Statement>close in interface AutoCloseablepublic boolean hasNext()
throws QueryExecutionFailure
hasNext in interface QueryResult<Statement>hasNext in interface Iterator<Statement>QueryExecutionFailurepublic Statement next() throws QueryExecutionFailure
next in interface QueryResult<Statement>next in interface Iterator<Statement>QueryExecutionFailurepublic void remove()
throws QueryExecutionFailure
remove in interface Iterator<Statement>QueryExecutionFailureCopyright © 2010-2016 Stardog Union. All Rights Reserved.