public final class IteratorAsGraphQueryResult extends Object implements org.openrdf.query.GraphQueryResult
Adapter class for using a StatementIteration as a Sesame GraphQueryResult.
| Constructor and Description |
|---|
IteratorAsGraphQueryResult(Iterator<org.openrdf.model.Statement> theIter) |
IteratorAsGraphQueryResult(Iterator<org.openrdf.model.Statement> theIter,
Iterable<org.openrdf.model.Namespace> theNamespacesProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<String,String> |
getNamespaces() |
boolean |
hasNext() |
org.openrdf.model.Statement |
next() |
void |
remove() |
public IteratorAsGraphQueryResult(Iterator<org.openrdf.model.Statement> theIter)
public Map<String,String> getNamespaces()
getNamespaces in interface org.openrdf.query.GraphQueryResultpublic void close()
throws org.openrdf.query.QueryEvaluationException
close in interface info.aduna.iteration.CloseableIteration<org.openrdf.model.Statement,org.openrdf.query.QueryEvaluationException>close in interface AutoCloseableorg.openrdf.query.QueryEvaluationExceptionpublic boolean hasNext()
throws org.openrdf.query.QueryEvaluationException
hasNext in interface info.aduna.iteration.Iteration<org.openrdf.model.Statement,org.openrdf.query.QueryEvaluationException>org.openrdf.query.QueryEvaluationExceptionpublic org.openrdf.model.Statement next()
throws org.openrdf.query.QueryEvaluationException
next in interface info.aduna.iteration.Iteration<org.openrdf.model.Statement,org.openrdf.query.QueryEvaluationException>org.openrdf.query.QueryEvaluationExceptionpublic void remove()
throws org.openrdf.query.QueryEvaluationException
remove in interface info.aduna.iteration.Iteration<org.openrdf.model.Statement,org.openrdf.query.QueryEvaluationException>org.openrdf.query.QueryEvaluationExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.