public abstract class HadoopCountersBase extends Object implements Iterable<GiraphHadoopCounter>
Modifier | Constructor and Description |
---|---|
protected |
HadoopCountersBase(org.apache.hadoop.mapreduce.Mapper.Context context,
String groupName)
Initialize with Hadoop Context and group name.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.Mapper.Context |
getContext()
Get Hadoop Context
|
protected GiraphHadoopCounter |
getCounter(String name)
Get or create counter with given name and class's group name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, iterator, spliterator
protected HadoopCountersBase(org.apache.hadoop.mapreduce.Mapper.Context context, String groupName)
context
- Hadoop Context to use.groupName
- String group name to use.public org.apache.hadoop.mapreduce.Mapper.Context getContext()
protected GiraphHadoopCounter getCounter(String name)
name
- String name of counterCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.