Class CounterSummary
- java.lang.Object
-
- org.apache.accumulo.core.client.summary.CounterSummary
-
public class CounterSummary extends Object
This a convenience class for interpreting summary data generated by implementations ofCountingSummarizer
- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description CounterSummary(Summary summary)
This method will callCounterSummary(Summary, boolean)
with true.CounterSummary(Summary summary, boolean checkType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Long>
getCounters()
long
getDeletesIgnored()
long
getEmitted()
long
getIgnored()
long
getSeen()
long
getTooLong()
long
getTooMany()
-
-
-
Constructor Detail
-
CounterSummary
public CounterSummary(Summary summary)
This method will callCounterSummary(Summary, boolean)
with true.
-
CounterSummary
public CounterSummary(Summary summary, boolean checkType)
- Parameters:
summary
- a summarycheckType
- If true will try to ensure the classname fromSummary.getSummarizerConfiguration()
is an instance ofCountingSummarizer
. However this check can only succeed if the class is on the classpath. For cases where the summary data needs to be used and the class is not on the classpath, set this to false.
-
-
Method Detail
-
getSeen
public long getSeen()
- Returns:
- statistic for
CountingSummarizer.SEEN_STAT
-
getEmitted
public long getEmitted()
- Returns:
- statistic for
CountingSummarizer.EMITTED_STAT
-
getIgnored
public long getIgnored()
- Returns:
- the sum of
getTooLong()
andgetTooLong()
-
getTooLong
public long getTooLong()
- Returns:
- statistic for
CountingSummarizer.TOO_LONG_STAT
-
getTooMany
public long getTooMany()
- Returns:
- statistic for
CountingSummarizer.TOO_MANY_STAT
-
getDeletesIgnored
public long getDeletesIgnored()
- Returns:
- statistic for
CountingSummarizer.DELETES_IGNORED_STAT
-
getCounters
public Map<String,Long> getCounters()
- Returns:
- All statistics with a prefix of
CountingSummarizer.COUNTER_STAT_PREFIX
with the prefix stripped off.
-
-