Package org.apache.iceberg.metrics
Class DefaultCounter
java.lang.Object
org.apache.iceberg.metrics.DefaultCounter
- All Implemented Interfaces:
- Counter
A default 
Counter implementation that uses an AtomicLong to count events.- 
Field Details- 
NOOP
 
- 
- 
Method Details- 
incrementpublic void increment()Description copied from interface:CounterIncrement the counter by 1.
- 
incrementpublic void increment(long amount) Description copied from interface:CounterIncrement the counter by the provided amount.Implementations may skip the overflow check for better write throughput. 
- 
valuepublic long value()Description copied from interface:CounterReports the current count.
- 
toString
- 
unitDescription copied from interface:CounterThe unit of the counter.
 
-