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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addAll
(QuerySolution other) Add all of the solutions from one QuerySolution into this QuerySolutionMapvoid
addAll
(QuerySolutionMap other) Add all of the solutions from one QuerySolutionMap into this QuerySolutionMapasMap()
Return aMap<String, RDFNode>
representing the current state of thisQuerySolutionMap
.void
clear()
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
-
Constructor Details
-
QuerySolutionMap
public QuerySolutionMap()
-
-
Method Details
-
add
-
varNames
Description copied from interface:QuerySolution
Iterate over the variable names (strings) in this QuerySolution.- Specified by:
varNames
in interfaceQuerySolution
- Specified by:
varNames
in 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 theQuerySolutionMap
and later changes to eitherMap
orQuerySolutionMap
will 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
-