public class ExpressionCalculator extends Object
AnalyticsExpression
s.Constructor and Description |
---|
ExpressionCalculator(Iterable<AnalyticsExpression> expressions) |
Modifier and Type | Method and Description |
---|---|
void |
addResults(Map<String,Object> response)
Calculate results for the list of
AnalyticsExpression s and add them to the given response. |
Map<String,Object> |
getResults()
Calculate results for the list of
AnalyticsExpression s. |
public ExpressionCalculator(Iterable<AnalyticsExpression> expressions)
public Map<String,Object> getResults()
AnalyticsExpression
s.
NOTE: This method can, and is, called multiple times to generate different responses.
The results are determined by which ReductionCollectionManager.ReductionDataCollection
is passed to the ReductionCollectionManager.setData(org.apache.solr.analytics.function.ReductionCollectionManager.ReductionDataCollection)
method of the ReductionCollectionManager
managing the reduction for the list of AnalyticsExpression
s.
NamedList
containing the resultspublic void addResults(Map<String,Object> response)
AnalyticsExpression
s and add them to the given response.
NOTE: This method can, and is, called multiple times to generate different responses.
The results are determined by which ReductionCollectionManager.ReductionDataCollection
is passed to the ReductionCollectionManager.setData(org.apache.solr.analytics.function.ReductionCollectionManager.ReductionDataCollection)
method of the ReductionCollectionManager
managing the reduction for the list of AnalyticsExpression
s.
response
- the response to add the results map to.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.