Constructor and Description |
---|
Counters.Counter() |
Modifier and Type | Method and Description |
---|---|
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) |
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) |
public void setDisplayName(String displayName)
Counter
setDisplayName
in interface Counter
displayName
- of the counterpublic String getName()
public 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(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public String makeEscapedCompactString()
@Deprecated public boolean contentEquals(Counters.Counter counter)
counter
- to comparepublic long getCounter()
public Counter getUnderlyingCounter()
getUnderlyingCounter
in interface Counter
Copyright © 2015 Apache Software Foundation. All Rights Reserved.