Class ResultSetMem

    • Constructor Detail

      • 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 Detail

      • hasNext

        public boolean hasNext()
        Is there another possibility?
        Specified by:
        hasNext in interface java.util.Iterator<QuerySolution>
        Specified by:
        hasNext in interface ResultSet
      • next

        public QuerySolution next()
        Moves onto the next result possibility. The returned object should be of class QuerySolution
        Specified by:
        next in interface java.util.Iterator<QuerySolution>
        Specified by:
        next in interface ResultSet
      • close

        public void close()
        Specified by:
        close in interface ResultSet
      • rewind

        public void rewind()
        Reset this result set back to the beginning
      • reset

        public void reset()
        Description copied from interface: ResultSetRewindable
        Move back to the start of the iterator for this instance of results of a query.
        Specified by:
        reset in interface ResultSetRewindable
      • getRowNumber

        public int getRowNumber()
        Return the "row" number for the current iterator item
        Specified by:
        getRowNumber in interface ResultSet
      • getResourceModel

        public Model getResourceModel()
        Description copied from interface: ResultSet
        Get the model that resources are created against - may be null
        Specified by:
        getResourceModel in interface ResultSet
      • getResultVars

        public java.util.List<java.lang.String> getResultVars()
        Get the variable names for the projection
        Specified by:
        getResultVars in interface ResultSet