Class Counter

Object
io.delta.kernel.internal.metrics.Counter

public class Counter extends Object
A long counter that uses AtomicLong to count events.
  • 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

      public String toString()
      Overrides:
      toString in class Object