Class IteratingTupleQueryResult

All Implemented Interfaces:
AutoCloseable, Iterable<BindingSet>, CloseableIteration<BindingSet,QueryEvaluationException>, Iteration<BindingSet,QueryEvaluationException>, QueryResult<BindingSet>, TupleQueryResult
Direct Known Subclasses:
BackgroundTupleResult, TupleQueryResultImpl

public class IteratingTupleQueryResult extends IterationWrapper<BindingSet,QueryEvaluationException> implements TupleQueryResult
An iterating implementation of the TupleQueryResult interface.
  • Constructor Details

    • IteratingTupleQueryResult

      public IteratingTupleQueryResult(List<String> bindingNames, Iterable<? extends BindingSet> bindingSets)
      Creates a query result object with the supplied binding names. The supplied list of binding names is assumed to be constant; care should be taken that the contents of this list doesn't change after supplying it to this solution.
      Parameters:
      bindingNames - The binding names, in order of projection.
    • IteratingTupleQueryResult

      public IteratingTupleQueryResult(List<String> bindingNames, Iterator<? extends BindingSet> bindingSetIter)
    • IteratingTupleQueryResult

      public IteratingTupleQueryResult(List<String> bindingNames, CloseableIteration<? extends BindingSet,QueryEvaluationException> bindingSetIter)
      Creates a query result object with the supplied binding names. The supplied list of binding names is assumed to be constant; care should be taken that the contents of this list doesn't change after supplying it to this solution.
      Parameters:
      bindingNames - The binding names, in order of projection.
  • Method Details