public class CounterSummary extends Object
CountingSummarizer
Constructor and Description |
---|
CounterSummary(Summary summary)
This method will call
CounterSummary(Summary, boolean) with true. |
CounterSummary(Summary summary,
boolean checkType) |
Modifier and Type | Method and Description |
---|---|
Map<String,Long> |
getCounters() |
long |
getDeletesIgnored() |
long |
getEmitted() |
long |
getIgnored() |
long |
getSeen() |
long |
getTooLong() |
long |
getTooMany() |
public CounterSummary(Summary summary)
CounterSummary(Summary, boolean)
with true.public CounterSummary(Summary summary, boolean checkType)
summary
- a summarycheckType
- If true will try to ensure the classname from
Summary.getSummarizerConfiguration()
is an instance of
CountingSummarizer
. 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.public long getSeen()
CountingSummarizer.SEEN_STAT
public long getEmitted()
CountingSummarizer.EMITTED_STAT
public long getIgnored()
getTooLong()
and getTooLong()
public long getTooLong()
CountingSummarizer.TOO_LONG_STAT
public long getTooMany()
CountingSummarizer.TOO_MANY_STAT
public long getDeletesIgnored()
CountingSummarizer.DELETES_IGNORED_STAT
public Map<String,Long> getCounters()
CountingSummarizer.COUNTER_STAT_PREFIX
with the
prefix stripped off.Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.