Class AggregatingFormatter

    • Constructor Detail

      • AggregatingFormatter

        public AggregatingFormatter()
    • Method Detail

      • aggregateStats

        protected abstract void aggregateStats​(Map.Entry<Key,​Value> next)
        Generate statistics from each Map.Entry, called for each entry to be iterated over.
        next - the next entry to aggregate
      • getStats

        protected abstract String getStats()
        Finalize the aggregation and return the result. Called once at the end.
        the aggregation results, suitable for printing to the console