Interface Summarizer.Combiner
-
- Enclosing interface:
- Summarizer
public static interface Summarizer.Combiner
A Combiner is used to merge statistics emitted fromSummarizer.Collector.summarize(Summarizer.StatisticConsumer)
and from previous invocations of itself.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
merge(Map<String,Long> statistics1, Map<String,Long> statistics2)
This method should merge the statistics in the second map into the first map.
-
-
-
Method Detail
-
merge
void merge(Map<String,Long> statistics1, Map<String,Long> statistics2)
This method should merge the statistics in the second map into the first map. Both maps may have statistics produced by aSummarizer.Collector
or previous calls to this method.If first map is too large after this call, then it may not be stored. See the comment on
Summarizer.Collector.summarize(Summarizer.StatisticConsumer)
-
-