Package org.apache.iceberg.metrics
Class DefaultCounter
- java.lang.Object
-
- org.apache.iceberg.metrics.DefaultCounter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
increment()
Increment the counter by 1.void
increment(long amount)
Increment the counter by the provided amount.java.lang.String
toString()
MetricsContext.Unit
unit()
The unit of the counter.long
value()
Reports the current count.
-
-
-
Field Detail
-
NOOP
public static final Counter NOOP
-
-
Method Detail
-
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.
-
value
public long value()
Description copied from interface:Counter
Reports the current count.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
unit
public MetricsContext.Unit unit()
Description copied from interface:Counter
The unit of the counter.
-
-