Class RowSetOps

java.lang.Object
org.apache.jena.sparql.exec.RowSetOps

public class RowSetOps extends Object
RowSetFormatter - Convenience ways to call the various output formatters. in various formats.
See Also:
  • Method Details

    • consume

      public static void consume(RowSet rowSet)
      This operation faithfully walks the rowSet but does nothing with the rows.
    • count

      public static long count(RowSet rowSet)
      Count the rows in the RowSet (from the current point of RowSet). This operation consumes the RowSet.
    • out

      public static void out(RowSet rowSet)
      Output a result set in a text format. The result set is consumed. Use @see{ResultSetFactory.makeRewindable(ResultSet)} for a rewindable one.

      This caches the entire results in memory in order to determine the appropriate column widths and therefore may exhaust memory for large results

      Parameters:
      rowSet - result set
    • out

      public static void out(OutputStream out, RowSet rowSet)
      Output a result set in a text format.

      This caches the entire results in memory in order to determine the appropriate column widths and therefore may exhaust memory for large results

      Parameters:
      out - OutputStream
      rowSet - result set
    • out

      public static void out(OutputStream out, RowSet resultSet, PrefixMap pmap)
      Output a result set in a text format.

      This caches the entire results in memory in order to determine the appropriate column widths and therefore may exhaust memory for large results

      Parameters:
      out - OutputStream
      resultSet - Result set
      pmap - Prefix mapping for abbreviating URIs.
    • out

      public static void out(OutputStream out, RowSet rowSet, Prologue prologue)
      Output a result set in a text format. The result set is consumed. Use @see{ResultSetFactory.makeRewindable(ResultSet)} for a rewindable one.

      This caches the entire results in memory in order to determine the appropriate column widths and therefore may exhaust memory for large results

      Parameters:
      out - OutputStream
      rowSet - result set
      prologue - Prologue, used to abbreviate IRIs
    • out

      public static void out(boolean answer)
      Output an ASK answer
      Parameters:
      answer - The boolean answer
    • out

      public static void out(OutputStream out, boolean answer)
      Output an ASK answer
      Parameters:
      out - OutputStream
      answer - The boolean answer