Package org.apache.iceberg.metrics
Interface MetricsContext.Counter<T extends java.lang.Number>
-
- Enclosing interface:
- MetricsContext
@Deprecated public static interface MetricsContext.Counter<T extends java.lang.Number>Deprecated.will be removed in 2.0.0, useCounterinstead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.util.Optional<T>count()Deprecated.Usevalue()voidincrement()Deprecated.Increment the counter by a single whole number value (i.e.voidincrement(T amount)Deprecated.Increment the counter by the provided amount.default MetricsContext.Unitunit()Deprecated.The unit of the counter.default Tvalue()Deprecated.Reports the current count.
-
-
-
Method Detail
-
increment
void increment()
Deprecated.Increment the counter by a single whole number value (i.e. 1).
-
increment
void increment(T amount)
Deprecated.Increment the counter by the provided amount.- Parameters:
amount- to be incremented
-
count
@Deprecated default java.util.Optional<T> count()
Deprecated.Usevalue()Reporting count is optional if the counter is reporting externally.- Returns:
- current count if available
-
value
default T value()
Deprecated.Reports the current count.- Returns:
- The current count
-
unit
default MetricsContext.Unit unit()
Deprecated.The unit of the counter.- Returns:
- The unit of the counter.
-
-