| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.Counters.Counter
@InterfaceAudience.Public @InterfaceStability.Stable public static class Counters.Counter
A counter record, comprising its name and value.
| Constructor Summary | |
|---|---|
| Counters.Counter() | |
| Method Summary | |
|---|---|
|  boolean | contentEquals(Counters.Counter counter)Deprecated. | 
|  boolean | equals(Object genericRight) | 
|  long | getCounter() | 
|  String | getDisplayName()Get the display name of the counter. | 
|  String | getName() | 
|  Counter | getUnderlyingCounter() | 
|  long | getValue()What is the current value of this counter? | 
|  int | hashCode() | 
|  void | increment(long incr)Increment this counter by the given value | 
|  String | makeEscapedCompactString()Returns the compact stringified version of the counter in the format [(actual-name)(display-name)(value)] | 
|  void | readFields(DataInput in)Deserialize the fields of this object from in. | 
|  void | setDisplayName(String displayName)Set the display name of the counter | 
|  void | setValue(long value)Set this counter by the given value | 
|  void | write(DataOutput out)Serialize the fields of this object to out. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Counters.Counter()
| Method Detail | 
|---|
public void setDisplayName(String displayName)
Counter
setDisplayName in interface CounterdisplayName - of the counterpublic String getName()
getName in interface Counterpublic String getDisplayName()
Counter
getDisplayName in interface Counterpublic long getValue()
Counter
getValue in interface Counterpublic void setValue(long value)
Counter
setValue in interface Countervalue - the value to setpublic void increment(long incr)
Counter
increment in interface Counterincr - the value to increase this counter by
public void write(DataOutput out)
           throws IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
                throws IOException
Writablein.  
 
 For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOExceptionpublic String makeEscapedCompactString()
@Deprecated public boolean contentEquals(Counters.Counter counter)
counter - to compare
public long getCounter()
public Counter getUnderlyingCounter()
getUnderlyingCounter in interface Counterpublic boolean equals(Object genericRight)
equals in class Objectpublic int hashCode()
hashCode in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||