public final class GraphQueryResultIterator extends com.google.common.collect.AbstractIterator<org.openrdf.model.Statement> implements StatementIterator
Iteration implementation over graph query results. Optionally will apply a context to the results as they are returned so we can have the effect of doing construct queries which return statements w/ non-null contexts.
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>| Constructor and Description |
|---|
GraphQueryResultIterator(org.openrdf.query.GraphQueryResult theResult)
Create a new GraphQueryResultIteration
|
GraphQueryResultIterator(org.openrdf.query.GraphQueryResult theResult,
org.openrdf.model.Resource theContext)
Create a new GQRIterator
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.openrdf.model.Statement |
computeNext() |
Iterable<org.openrdf.model.Namespace> |
namespaces()
Returns namespaces associated with this statement iteration if any.
|
endOfData, hasNext, next, peekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseQuietly, collect, concat, empty, filter, first, isEmpty, onClose, singleton, size, toCloseable, toCloseable, toCloseable, toList, toSet, transformforEachRemaining, hasNext, next, removepublic GraphQueryResultIterator(org.openrdf.query.GraphQueryResult theResult)
theResult - the query resultpublic GraphQueryResultIterator(org.openrdf.query.GraphQueryResult theResult,
org.openrdf.model.Resource theContext)
theResult - the query resulttheContext - the context to be applied to the results, or null if the context should not be alteredpublic Iterable<org.openrdf.model.Namespace> namespaces() throws org.openrdf.query.QueryEvaluationException
namespaces in interface StatementIteratornullorg.openrdf.query.QueryEvaluationExceptionpublic org.openrdf.model.Statement computeNext()
throws org.openrdf.query.QueryEvaluationException
computeNext in class com.google.common.collect.AbstractIterator<org.openrdf.model.Statement>org.openrdf.query.QueryEvaluationExceptionpublic void close()
throws org.openrdf.query.QueryEvaluationException
close in interface CloseableIterator<org.openrdf.model.Statement>close in interface AutoCloseableorg.openrdf.query.QueryEvaluationExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.