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
- 
increment
public void increment()Description copied from interface:CounterIncrement the counter by 1. - 
increment
public 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.
 - 
value
public long value()Description copied from interface:CounterReports the current count. - 
toString
 - 
unit
Description copied from interface:CounterThe unit of the counter. 
 -