|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.Counters.Counter
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(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)
|
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(java.lang.String displayName)
Counter
setDisplayName
in interface Counter
displayName
- of the counterpublic java.lang.String getName()
getName
in interface Counter
public java.lang.String getDisplayName()
Counter
getDisplayName
in interface Counter
public long getValue()
Counter
getValue
in interface Counter
public void setValue(long value)
Counter
setValue
in interface Counter
value
- the value to setpublic void increment(long incr)
Counter
increment
in interface Counter
incr
- the value to increase this counter bypublic 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 compare
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |