public class DeletesSummarizer extends Object implements Summarizer
This summarizer is used by org.apache.accumulo.tserver.compaction.strategies.TooManyDeletesCompactionStrategy to make compaction decisions based on the number of deletes.
Summarizer.Collector, Summarizer.Combiner, Summarizer.StatisticConsumer
Modifier and Type | Field and Description |
---|---|
static String |
DELETES_STAT
The name of the statistics for the number of deletes.
|
static String |
TOTAL_STAT
The name of the statistics for the total number of keys.
|
Constructor and Description |
---|
DeletesSummarizer() |
Modifier and Type | Method and Description |
---|---|
Summarizer.Collector |
collector(SummarizerConfiguration sc)
Factory method that creates a
Summarizer.Collector based on configuration. |
Summarizer.Combiner |
combiner(SummarizerConfiguration sc)
Factory method that creates a
Summarizer.Combiner . |
public static final String DELETES_STAT
public static final String TOTAL_STAT
public Summarizer.Collector collector(SummarizerConfiguration sc)
Summarizer
Summarizer.Collector
based on configuration. Each Summarizer.Collector
created by this method should be independent and have its own internal state. Accumulo uses a
Collector to generate summary statistics about a sequence of key values written to a file.collector
in interface Summarizer
public Summarizer.Combiner combiner(SummarizerConfiguration sc)
Summarizer
Summarizer.Combiner
. Accumulo will only use the created Combiner to
merge data from Summarizer.Collector
s created using the same SummarizerConfiguration
.combiner
in interface Summarizer
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.