public final class GraphQueryResultIterator extends com.google.common.collect.AbstractIterator<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.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>| Constructor and Description |
|---|
GraphQueryResultIterator(GraphQueryResult theResult)
Create a new GraphQueryResultIteration
|
GraphQueryResultIterator(GraphQueryResult theResult,
Resource theContext)
Create a new GQRIterator
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Statement |
computeNext() |
Namespaces |
namespaces()
Returns namespaces associated with this statement iteration if any.
|
endOfData, hasNext, next, peekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocess, toGraphcloseQuietly, collect, concat, concat, concat, empty, filter, first, isEmpty, map, onClose, singleton, size, toCloseable, toCloseable, toCloseable, toList, toSet, transformforEachRemaining, hasNext, next, removepublic GraphQueryResultIterator(GraphQueryResult theResult)
theResult - the query resultpublic GraphQueryResultIterator(GraphQueryResult theResult, Resource theContext)
theResult - the query resulttheContext - the context to be applied to the results, or null if the context should not be alteredpublic Namespaces namespaces()
namespaces in interface StatementIteratornullpublic Statement computeNext()
computeNext in class com.google.common.collect.AbstractIterator<Statement>public void close()
close in interface CloseableIterator<Statement>close in interface AutoCloseableCopyright © 2010-2016 Stardog Union. All Rights Reserved.