Class ResultSetMem

java.lang.Object
org.apache.jena.sparql.resultset.ResultSetMem
All Implemented Interfaces:
Iterator<QuerySolution>, ResultSet, ResultSetRewindable, ResultSetPeekable
Direct Known Subclasses:
RDFInput

public class ResultSetMem extends Object implements ResultSetRewindable, ResultSetPeekable
A result set held in-memory. rewindable.
  • Constructor Details

    • ResultSetMem

      public ResultSetMem(ResultSetMem imrs2)
      Create an in-memory result set from another one
      Parameters:
      imrs2 - The other QueryResultsMem object
    • ResultSetMem

      public ResultSetMem(ResultSetMem imrs2, boolean takeCopy)
      Create an in-memory result set from another one
      Parameters:
      imrs2 - The other ResultSetMem object
      takeCopy - Should we copy the rows?
    • ResultSetMem

      public ResultSetMem(ResultSet qr)
      Create an in-memory result set from any ResultSet object. If the ResultSet is an in-memory one already, then no copying is done - the necessary internal datastructures are shared. This operation destroys (uses up) a ResultSet object that is not an in-memory one.
    • ResultSetMem

      public ResultSetMem(ResultSet... sets)
      Create an in-memory result set from an array of ResulSets. It is assumed that all the ResultSets from the array have the same variables.
      Parameters:
      sets - the ResultSet objects to concatenate.
    • ResultSetMem

      public ResultSetMem()
  • Method Details