Interface QueryResult<T>

    • Method Detail

      • stream

        default 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 org.eclipse.rdf4j.common.iteration.CloseableIteration<T,​QueryEvaluationException>
        Specified by:
        stream in interface org.eclipse.rdf4j.common.iteration.Iteration<T,​QueryEvaluationException>
        Returns:
        stream a Stream of query result elements.