Interface QueryResult<T>

All Superinterfaces:
AutoCloseable, CloseableIteration<T,QueryEvaluationException>, Iterable<T>, Iteration<T,QueryEvaluationException>
All Known Subinterfaces:
GraphQueryResult, TupleQueryResult
All Known Implementing Classes:
BackgroundGraphResult, BackgroundTupleResult, CachedGraphQueryResult, CachedTupleQueryResult, CleanerGraphQueryResult, CleanerTupleQueryResult, GraphQueryResultImpl, IteratingGraphQueryResult, IteratingTupleQueryResult, MutableTupleQueryResult, ReusableGraphQueryResult, ReusableTupleQueryResult, TupleQueryResultImpl

public interface QueryResult<T> extends AutoCloseable, CloseableIteration<T,QueryEvaluationException>, Iterable<T>
Super type of all query result types (TupleQueryResult, GraphQueryResult, etc.).
Author:
Jeen Broekstra, Arjohn Kampman
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the query result has more elements.
    default Iterator<T>
     
    Returns the next element in the query result.
    default Stream<T>
    Convert the result elements to a Java Stream.

    Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration

    close

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface org.eclipse.rdf4j.common.iteration.Iteration

    remove