Class QuerySolutionMap

java.lang.Object
org.apache.jena.sparql.core.QuerySolutionBase
org.apache.jena.query.QuerySolutionMap
All Implemented Interfaces:
QuerySolution

public class QuerySolutionMap extends QuerySolutionBase
Implementation of QuerySolution that is backed by an in-memory map.
  • Constructor Details

    • QuerySolutionMap

      public QuerySolutionMap()
  • Method Details

    • add

      public void add(String name, org.apache.jena.rdf.model.RDFNode node)
    • varNames

      public Iterator<String> varNames()
      Description copied from interface: QuerySolution
      Iterate over the variable names (strings) in this QuerySolution.
      Specified by:
      varNames in interface QuerySolution
      Specified by:
      varNames in class QuerySolutionBase
      Returns:
      Iterator of strings
    • addAll

      public void addAll(QuerySolutionMap other)
      Add all of the solutions from one QuerySolutionMap into this QuerySolutionMap
    • asMap

      public Map<String,org.apache.jena.rdf.model.RDFNode> asMap()
      Return a Map<String, RDFNode> representing the current state of this QuerySolutionMap. The map is not connected to the QuerySolutionMap and later changes to either Map or QuerySolutionMap will not reflected in the other.
      Returns:
      Map<String, RDFNode>
    • addAll

      public void addAll(QuerySolution other)
      Add all of the solutions from one QuerySolution into this QuerySolutionMap
    • clear

      public void clear()
      Clear this QuerySolutionMap
    • toString

      public String toString()
      Overrides:
      toString in class Object