Class DefaultStatisticsCollector
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.reporting.impl.DefaultStatisticsCollector
-
- All Implemented Interfaces:
StatisticsCollector
public class DefaultStatisticsCollector extends java.lang.Object implements StatisticsCollector
Default query statistics collector. Maps formatted date, index name, language and query to query statistics
-
-
Constructor Summary
Constructors Constructor Description DefaultStatisticsCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStatistic(SearchQueryInfo searchResult)Adds single statisticvoidclear()Clears all statisticsprotected voidcreateDateIndexEntry(SearchQueryInfo searchResult, java.lang.String formattedDate)java.util.List<AggregatedSearchQueryInfo>getAggregatedStatistics()Returns all aggregated statistics for all single queries that had been addedvoidsetFormatter(java.text.SimpleDateFormat formatter)protected voidupdateDateIndexEntry(SearchQueryInfo searchResult, java.lang.String formattedDate)
-
-
-
Method Detail
-
addStatistic
public void addStatistic(SearchQueryInfo searchResult)
Description copied from interface:StatisticsCollectorAdds single statistic- Specified by:
addStatisticin interfaceStatisticsCollector
-
updateDateIndexEntry
protected void updateDateIndexEntry(SearchQueryInfo searchResult, java.lang.String formattedDate)
-
createDateIndexEntry
protected void createDateIndexEntry(SearchQueryInfo searchResult, java.lang.String formattedDate)
-
getAggregatedStatistics
public java.util.List<AggregatedSearchQueryInfo> getAggregatedStatistics()
Description copied from interface:StatisticsCollectorReturns all aggregated statistics for all single queries that had been added- Specified by:
getAggregatedStatisticsin interfaceStatisticsCollector
-
clear
public void clear()
Description copied from interface:StatisticsCollectorClears all statistics- Specified by:
clearin interfaceStatisticsCollector
-
setFormatter
public void setFormatter(java.text.SimpleDateFormat formatter)
-
-