Search in sources :

Example 1 with Summarizer

use of org.apache.accumulo.core.client.summary.Summarizer in project accumulo by apache.

the class SummarySerializer method getSummary.

public Map<String, Long> getSummary(List<RowRange> ranges, SummarizerFactory sf) {
    Summarizer kvs = sf.getSummarizer(sconf);
    Map<String, Long> summary = new HashMap<>();
    for (LgSummaries lgs : allSummaries) {
        lgs.getSummary(ranges, kvs.combiner(sconf), summary);
    }
    return summary;
}
Also used : HashMap(java.util.HashMap) Summarizer(org.apache.accumulo.core.client.summary.Summarizer)

Aggregations

HashMap (java.util.HashMap)1 Summarizer (org.apache.accumulo.core.client.summary.Summarizer)1