| Constructor and Description |
|---|
Counters.Counter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentEquals(Counters.Counter counter)
Deprecated.
|
boolean |
equals(java.lang.Object genericRight) |
long |
getCounter() |
java.lang.String |
getDisplayName()
Get the display name of the counter.
|
java.lang.String |
getName() |
Counter |
getUnderlyingCounter()
Return the underlying object if this is a facade.
|
long |
getValue()
What is the current value of this counter?
|
int |
hashCode() |
void |
increment(long incr)
Increment this counter by the given value
|
java.lang.String |
makeEscapedCompactString()
Returns the compact stringified version of the counter in the format
[(actual-name)(display-name)(value)]
|
void |
readFields(java.io.DataInput in) |
void |
setDisplayName(java.lang.String displayName)
Set the display name of the counter
|
void |
setValue(long value)
Set this counter by the given value
|
void |
write(java.io.DataOutput out) |
public void setDisplayName(java.lang.String displayName)
CountersetDisplayName in interface CounterdisplayName - of the counterpublic java.lang.String getName()
public java.lang.String getDisplayName()
CountergetDisplayName in interface Counterpublic long getValue()
Counterpublic void setValue(long value)
Counterpublic void increment(long incr)
Counterpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic java.lang.String makeEscapedCompactString()
@Deprecated public boolean contentEquals(Counters.Counter counter)
counter - to comparepublic long getCounter()
public Counter getUnderlyingCounter()
CountergetUnderlyingCounter in interface Counterpublic boolean equals(java.lang.Object genericRight)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2009 The Apache Software Foundation