java.lang.Object
org.apache.jena.sparql.core.QuerySolutionBase
org.apache.jena.query.QuerySolutionMap
- All Implemented Interfaces:
QuerySolution
Implementation of QuerySolution that is backed by an in-memory map.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(QuerySolution other) Add all of the solutions from one QuerySolution into this QuerySolutionMapvoidaddAll(QuerySolutionMap other) Add all of the solutions from one QuerySolutionMap into this QuerySolutionMapasMap()Return aMap<String, RDFNode>representing the current state of thisQuerySolutionMap.voidclear()Clear this QuerySolutionMaptoString()varNames()Iterate over the variable names (strings) in this QuerySolution.Methods inherited from class org.apache.jena.sparql.core.QuerySolutionBase
contains, get, getLiteral, getResource, getStatementTerm
-
Constructor Details
-
QuerySolutionMap
public QuerySolutionMap()
-
-
Method Details
-
add
-
varNames
Description copied from interface:QuerySolutionIterate over the variable names (strings) in this QuerySolution.- Specified by:
varNamesin interfaceQuerySolution- Specified by:
varNamesin classQuerySolutionBase- Returns:
- Iterator of strings
-
addAll
Add all of the solutions from one QuerySolutionMap into this QuerySolutionMap -
asMap
Return aMap<String, RDFNode>representing the current state of thisQuerySolutionMap. The map is not connected to theQuerySolutionMapand later changes to eitherMaporQuerySolutionMapwill not reflected in the other.- Returns:
- Map<String, RDFNode>
-
addAll
Add all of the solutions from one QuerySolution into this QuerySolutionMap -
clear
public void clear()Clear this QuerySolutionMap -
toString
-