Package org.apache.iceberg.metrics
Interface MetricsContext.Counter<T extends Number>
- Enclosing interface:
- MetricsContext
Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptioncount()Deprecated.Usevalue()voidDeprecated.Increment the counter by a single whole number value (i.e.voidDeprecated.Increment the counter by the provided amount.default MetricsContext.Unitunit()Deprecated.The unit of the counter.default Tvalue()Deprecated.Reports the current count.
- 
Method Details- 
incrementvoid increment()Deprecated.Increment the counter by a single whole number value (i.e. 1).
- 
incrementDeprecated.Increment the counter by the provided amount.- Parameters:
- amount- to be incremented
 
- 
countDeprecated.Usevalue()Reporting count is optional if the counter is reporting externally.- Returns:
- current count if available
 
- 
valueDeprecated.Reports the current count.- Returns:
- The current count
 
- 
unitDeprecated.The unit of the counter.- Returns:
- The unit of the counter.
 
 
- 
Counterinstead.