Interface QueryProcessingOutput


public interface QueryProcessingOutput
Base class functions should be used only after the query result has been consumed.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.query.ResultSet
    Returns the result set produced for the query for which this object was returned, assuming the query was a SELECT query.
    When called after the query result has been consumed, this function returns an object that captures query processing statistics and exceptions that have occurred while processing the query (if any).
  • Method Details

    • getResultSet

      org.apache.jena.query.ResultSet getResultSet()
      Returns the result set produced for the query for which this object was returned, assuming the query was a SELECT query. If the query was not a SELECT query, this function returns null.

      The returned result set can be consumed only once. If you want to consume it multiple times (i.e., make it rewindable), pass it to ResultSetFactory.makeRewindable(ResultSet) (which consumes the result set and returns a rewindable version of it).

    • getStatsAndExceptions

      QueryProcessingStatsAndExceptions getStatsAndExceptions()
      When called after the query result has been consumed, this function returns an object that captures query processing statistics and exceptions that have occurred while processing the query (if any).

      This function may return null, which may happen in two cases: either the query result has not been consumed yet or the Jena/ARQ query processing machinery did not invoke the HeFQUIN engine when processing the query.