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)
Counter
setDisplayName
in interface Counter
displayName
- of the counterpublic java.lang.String getName()
public java.lang.String getDisplayName()
Counter
getDisplayName
in interface Counter
public long getValue()
Counter
public void setValue(long value)
Counter
public void increment(long incr)
Counter
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public java.lang.String makeEscapedCompactString()
@Deprecated public boolean contentEquals(Counters.Counter counter)
counter
- to comparepublic long getCounter()
public Counter getUnderlyingCounter()
Counter
getUnderlyingCounter
in interface Counter
public boolean equals(java.lang.Object genericRight)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2009 The Apache Software Foundation