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:Counter
Increment the counter by 1. -
increment
public void increment(long amount) Description copied from interface:Counter
Increment the counter by the provided amount.Implementations may skip the overflow check for better write throughput.
-
value
public long value()Description copied from interface:Counter
Reports the current count. -
toString
-
unit
Description copied from interface:Counter
The unit of the counter.
-