Package io.delta.kernel.internal.metrics
Class Counter
Object
io.delta.kernel.internal.metrics.Counter
A long counter that uses
AtomicLong to count events.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Counter
public Counter()
-
-
Method Details
-
increment
public void increment()Increment the counter by 1. -
increment
public void increment(long amount) Increment the counter by the provided amount.- Parameters:
amount- to be incremented.
-
value
public long value()Reports the current count.- Returns:
- The current count.
-
reset
public void reset()Resets the current count to 0. -
toString
-