public class GiraphHadoopCounter extends Object
Constructor and Description |
---|
GiraphHadoopCounter(org.apache.hadoop.mapreduce.Counter counter)
Create wrapping a Hadoop Counter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object genericRight) |
String |
getDisplayName()
Get counter display name.
|
org.apache.hadoop.mapreduce.Counter |
getHadoopCounter()
Get underlying Hadoop Counter we're wrapping.
|
String |
getName()
Get counter name.
|
long |
getValue()
Get counter value
|
int |
hashCode() |
void |
increment()
Increment counter value by 1.
|
void |
increment(long incr)
Increment counter value.
|
void |
readFields(DataInput in)
Read from Hadoop input.
|
void |
setValue(long value)
Set counter to value.
|
void |
write(DataOutput out)
Write to Hadoop output.
|
public GiraphHadoopCounter(org.apache.hadoop.mapreduce.Counter counter)
counter
- Hadoop Counter to wrap.public org.apache.hadoop.mapreduce.Counter getHadoopCounter()
public void setValue(long value)
value
- long value to set to.public void increment()
public void increment(long incr)
incr
- amount to increment by.public long getValue()
public String getDisplayName()
public String getName()
public void write(DataOutput out) throws IOException
out
- DataOutput to write to.IOException
- if something goes wrong.public void readFields(DataInput in) throws IOException
in
- DataInput to read from.IOException
- if something goes wrong reading.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.