com.hp.hpl.jena.query
Class QuerySolutionMap

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.QuerySolutionBase
      extended by com.hp.hpl.jena.query.QuerySolutionMap
All Implemented Interfaces:
QuerySolution

public class QuerySolutionMap
extends QuerySolutionBase

Implementation of QuerySolution that is backed by an in-memory map.


Constructor Summary
QuerySolutionMap()
           
 
Method Summary
 void add(String name, com.hp.hpl.jena.rdf.model.RDFNode node)
           
 void addAll(QuerySolution other)
          Add all of the solutions from one QuerySolution into this QuerySolutionMap
 void addAll(QuerySolutionMap other)
          Add all of the solutions from one QuerySolutionMap into this QuerySolutionMap
 void clear()
          Clear this QuerySolutionMap
 String toString()
           
 Iterator<String> varNames()
          Iterate over the variable names (strings) in this QuerySolution.
 
Methods inherited from class com.hp.hpl.jena.sparql.core.QuerySolutionBase
contains, get, getLiteral, getResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuerySolutionMap

public QuerySolutionMap()
Method Detail

add

public void add(String name,
                com.hp.hpl.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


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


Licenced under the Apache License, Version 2.0