Package org.apache.hadoop.metrics2.util
Class Metrics2Util.NameValuePair
java.lang.Object
org.apache.hadoop.metrics2.util.Metrics2Util.NameValuePair
- All Implemented Interfaces:
Comparable<Metrics2Util.NameValuePair>
- Enclosing class:
- Metrics2Util
@Private
public static class Metrics2Util.NameValuePair
extends Object
implements Comparable<Metrics2Util.NameValuePair>
A pair of a name and its corresponding value. Defines a custom
comparator so the TopN PriorityQueue sorts based on the count.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NameValuePair
-
-
Method Details
-
getName
-
getValue
public long getValue() -
compareTo
- Specified by:
compareToin interfaceComparable<Metrics2Util.NameValuePair>
-
equals
-
hashCode
public int hashCode()
-