public class ExpressionCalculator extends Object
AnalyticsExpressions.| 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  AnalyticsExpressions and add them to the given response. | 
| Map<String,Object> | getResults()Calculate results for the list of  AnalyticsExpressions. | 
public ExpressionCalculator(Iterable<AnalyticsExpression> expressions)
public Map<String,Object> getResults()
AnalyticsExpressions.
 
 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 AnalyticsExpressions.
NamedList containing the resultspublic void addResults(Map<String,Object> response)
AnalyticsExpressions 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 AnalyticsExpressions.
response - the response to add the results map to.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.