Class CounterSummary
java.lang.Object
org.apache.accumulo.core.client.summary.CounterSummary
This a convenience class for interpreting summary data generated by implementations of
CountingSummarizer
- Since:
- 2.0.0
-
Constructor Summary
ConstructorDescriptionCounterSummary
(Summary summary) This method will callCounterSummary(Summary, boolean)
with true.CounterSummary
(Summary summary, boolean checkType) -
Method Summary
-
Constructor Details
-
CounterSummary
This method will callCounterSummary(Summary, boolean)
with true. -
CounterSummary
- 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 Details
-
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
- Returns:
- All statistics with a prefix of
CountingSummarizer.COUNTER_STAT_PREFIX
with the prefix stripped off.
-