public class HadoopLongCounter extends HadoopCounterAdapter
| Constructor and Description |
|---|
HadoopLongCounter()
Default constructor required by
Externalizable. |
HadoopLongCounter(String grp,
String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
increment(long i)
Increment this counter by the given value.
|
void |
merge(HadoopCounter cntr) |
protected void |
readValue(ObjectInput in)
Read value of this counter from input.
|
long |
value()
Gets current value of this counter.
|
void |
value(long val)
Sets current value by the given value.
|
protected void |
writeValue(ObjectOutput out)
Writes value of this counter to output.
|
equals, group, hashCode, name, readExternal, toString, writeExternalpublic HadoopLongCounter()
Externalizable.protected void writeValue(ObjectOutput out) throws IOException
writeValue in class HadoopCounterAdapterout - Output.IOException - If failed.protected void readValue(ObjectInput in) throws IOException
readValue in class HadoopCounterAdapterin - Input.IOException - If failed.public void merge(HadoopCounter cntr)
public long value()
public void value(long val)
val - Value to set.public void increment(long i)
i - Value to increase this counter by.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019