@InterfaceAudience.Public @InterfaceStability.Evolving public class ResourceMetrics extends Object
This class wraps a mapping from metric name to metric value for server-side metrics associated with a scanner and write operation.
Constructor and Description |
---|
ResourceMetrics() |
Modifier and Type | Method and Description |
---|---|
Map<String,Long> |
get()
Returns a copy of this ResourceMetrics's underlying map of metric name to
metric value.
|
long |
getMetric(String name)
Returns the value of the metric named by 'name', or 0 if there is no such metric.
|
public Map<String,Long> get()
public long getMetric(String name)
name
- the name of the metric to get the value for