Class TwoDimensionalSearchApiAggregator
java.lang.Object
com.atlassian.jira.search.aggregation.twodimensional.TwoDimensionalSearchApiAggregator
- All Implemented Interfaces:
TwoDimensionalAggregator
Aggregator for two-dimensional statistics using the search API.
- Since:
- 10.7
-
Constructor Summary
ConstructorsConstructorDescriptionTwoDimensionalSearchApiAggregator(IssueDocumentSearchService issueDocumentSearchService, RequestCacheFactory requestCacheFactory) -
Method Summary
Modifier and TypeMethodDescriptionaggregate(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, SearchRequest searchRequest, ApplicationUser searcher) Aggregate using the provided search request for the given user.
-
Constructor Details
-
TwoDimensionalSearchApiAggregator
public TwoDimensionalSearchApiAggregator(IssueDocumentSearchService issueDocumentSearchService, RequestCacheFactory requestCacheFactory)
-
-
Method Details
-
aggregate
public TwoDimensionalStatistics aggregate(StatisticsMapper xAxisMapper, StatisticsMapper yAxisMapper, SearchRequest searchRequest, ApplicationUser searcher) throws SearchException Description copied from interface:TwoDimensionalAggregatorAggregate using the provided search request for the given user. Uses theStatisticsMapperto load the values.- Specified by:
aggregatein interfaceTwoDimensionalAggregator- Parameters:
xAxisMapper-StatisticsMapperfor the x axisyAxisMapper-StatisticsMapperfor the y axissearchRequest-SearchRequestto use for the searchsearcher-ApplicationUserto use for the search- Returns:
- the aggregated
TwoDimensionalStatistics - Throws:
SearchException- if there is a problem executing the search
-