Class DeletesSummarizer
- java.lang.Object
-
- org.apache.accumulo.core.client.summary.summarizers.DeletesSummarizer
-
- All Implemented Interfaces:
Summarizer
public class DeletesSummarizer extends Object implements Summarizer
This summarizer tracks the total number of delete Keys seen and the total number of keys seen.This summarizer is used by org.apache.accumulo.tserver.compaction.strategies.TooManyDeletesCompactionStrategy to make compaction decisions based on the number of deletes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.summary.Summarizer
Summarizer.Collector, Summarizer.Combiner, Summarizer.StatisticConsumer
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description DeletesSummarizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Summarizer.Collector
collector(SummarizerConfiguration sc)
Factory method that creates aSummarizer.Collector
based on configuration.Summarizer.Combiner
combiner(SummarizerConfiguration sc)
Factory method that creates aSummarizer.Combiner
.
-
-
-
Field Detail
-
DELETES_STAT
public static final String DELETES_STAT
The name of the statistics for the number of deletes.- See Also:
- Constant Field Values
-
TOTAL_STAT
public static final String TOTAL_STAT
The name of the statistics for the total number of keys.- See Also:
- Constant Field Values
-
-
Method Detail
-
collector
public Summarizer.Collector collector(SummarizerConfiguration sc)
Description copied from interface:Summarizer
Factory method that creates aSummarizer.Collector
based on configuration. EachSummarizer.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.- Specified by:
collector
in interfaceSummarizer
-
combiner
public Summarizer.Combiner combiner(SummarizerConfiguration sc)
Description copied from interface:Summarizer
Factory method that creates aSummarizer.Combiner
. Accumulo will only use the created Combiner to merge data fromSummarizer.Collector
s created using the sameSummarizerConfiguration
.- Specified by:
combiner
in interfaceSummarizer
-
-