Interface QueryResult<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Returns true if the query result has more elements.
      default java.util.Iterator<T> iterator()  
      T next()
      Returns the next element in the query result.
      default java.util.stream.Stream<T> stream()
      Convert the result elements to a Java Stream.
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface org.eclipse.rdf4j.common.iteration.Iteration

        remove
    • Method Detail

      • iterator

        default java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • stream

        default java.util.stream.Stream<T> stream()
        Convert the result elements to a Java Stream. Note that the consumer should take care to close the stream (by calling Stream#close() or using try-with-resource) if it is not fully consumed.
        Specified by:
        stream in interface CloseableIteration<T,​QueryEvaluationException>
        Specified by:
        stream in interface Iteration<T,​QueryEvaluationException>
        Returns:
        stream a Stream of query result elements.