Class QueryResultImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.relations.api.impl.QueryResultImpl
-
- All Implemented Interfaces:
Serializable
,QueryResult
public class QueryResultImpl extends Object implements QueryResult
Query results.- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getCount()
List<Map<String,Node>>
getResults()
List<String>
getVariableNames()
void
setCount(Integer count)
void
setResults(List<Map<String,Node>> results)
void
setVariableNames(List<String> variableNames)
-
-
-
Constructor Detail
-
QueryResultImpl
public QueryResultImpl(Integer count, List<String> variableNames, List<Map<String,Node>> results)
Constructor for query result.- Parameters:
count
- integer number of resultsvariableNames
- list of variable names as requested in queryresults
- list of variable names/nodes found mapping
-
-
Method Detail
-
getCount
public Integer getCount()
- Specified by:
getCount
in interfaceQueryResult
-
setCount
public void setCount(Integer count)
- Specified by:
setCount
in interfaceQueryResult
-
getResults
public List<Map<String,Node>> getResults()
- Specified by:
getResults
in interfaceQueryResult
-
setResults
public void setResults(List<Map<String,Node>> results)
- Specified by:
setResults
in interfaceQueryResult
-
getVariableNames
public List<String> getVariableNames()
- Specified by:
getVariableNames
in interfaceQueryResult
-
setVariableNames
public void setVariableNames(List<String> variableNames)
- Specified by:
setVariableNames
in interfaceQueryResult
-
-