public class HadoopV1Counter extends Counters.Counter
| Constructor and Description |
|---|
HadoopV1Counter(HadoopLongCounter cntr)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentEquals(Counters.Counter cntr) |
long |
getCounter() |
String |
getDisplayName() |
String |
getName() |
Counter |
getUnderlyingCounter() |
long |
getValue() |
void |
increment(long incr) |
String |
makeEscapedCompactString() |
void |
readFields(DataInput in) |
void |
setDisplayName(String displayName) |
void |
setValue(long val) |
void |
write(DataOutput out) |
equals, hashCodepublic HadoopV1Counter(HadoopLongCounter cntr)
cntr - Delegate counter.public void setDisplayName(String displayName)
setDisplayName in interface CountersetDisplayName in class Counters.Counterpublic String getName()
getName in interface CountergetName in class Counters.Counterpublic String getDisplayName()
getDisplayName in interface CountergetDisplayName in class Counters.Counterpublic long getValue()
getValue in interface CountergetValue in class Counters.Counterpublic void setValue(long val)
setValue in interface CountersetValue in class Counters.Counterpublic void increment(long incr)
increment in interface Counterincrement in class Counters.Counterpublic void write(DataOutput out) throws IOException
write in interface Writablewrite in class Counters.CounterIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface WritablereadFields in class Counters.CounterIOExceptionpublic String makeEscapedCompactString()
makeEscapedCompactString in class Counters.Counterpublic boolean contentEquals(Counters.Counter cntr)
contentEquals in class Counters.Counterpublic long getCounter()
getCounter in class Counters.Counterpublic Counter getUnderlyingCounter()
getUnderlyingCounter in interface CountergetUnderlyingCounter in class Counters.Counter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019