Class GraphQueryResultIterator

java.lang.Object
com.google.common.collect.UnmodifiableIterator<Statement>
com.google.common.collect.AbstractIterator<Statement>
com.complexible.common.rdf.query.GraphQueryResultIterator
All Implemented Interfaces:
CloseableIterator<Statement>, StatementIterator, AutoCloseable, Iterator<Statement>

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.

Since:
0.2
Version:
6.0
Author:
Michael Grove
  • Constructor Details

    • GraphQueryResultIterator

      public GraphQueryResultIterator(GraphQueryResult theResult)
      Create a new GraphQueryResultIteration
      Parameters:
      theResult - the query result
    • GraphQueryResultIterator

      public GraphQueryResultIterator(GraphQueryResult theResult, Resource theContext)
      Create a new GQRIterator
      Parameters:
      theResult - the query result
      theContext - the context to be applied to the results, or null if the context should not be altered
  • Method Details