Class HadoopReporter
java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.hadoop.HadoopReporter
- All Implemented Interfaces:
fr.ens.biologie.genomique.kenetre.util.Reporter,fr.ens.biologie.genomique.kenetre.util.ReporterIncrementer
public class HadoopReporter
extends Object
implements fr.ens.biologie.genomique.kenetre.util.Reporter
This class define a Hadoop reporter.
- Since:
- 1.0
- Author:
- Laurent Jourdren
-
Constructor Summary
ConstructorsConstructorDescriptionHadoopReporter(org.apache.hadoop.mapreduce.Counters counters) Constructor.HadoopReporter(org.apache.hadoop.mapreduce.TaskInputOutputContext context) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCounterNames(String group) longgetCounterValue(String counterGroup, String counterName) voidincrCounter(String counterGroup, String counterName, long amount)
-
Constructor Details
-
HadoopReporter
public HadoopReporter(org.apache.hadoop.mapreduce.TaskInputOutputContext context) Constructor. This constructor is used by Hadoop mappers and reducers.- Parameters:
context- context to use for counter incrementation
-
HadoopReporter
public HadoopReporter(org.apache.hadoop.mapreduce.Counters counters) Constructor.- Parameters:
counters- counters to use for counter incrementation
-
-
Method Details
-
incrCounter
- Specified by:
incrCounterin interfacefr.ens.biologie.genomique.kenetre.util.ReporterIncrementer
-
getCounterValue
- Specified by:
getCounterValuein interfacefr.ens.biologie.genomique.kenetre.util.Reporter
-
getCounterGroups
- Specified by:
getCounterGroupsin interfacefr.ens.biologie.genomique.kenetre.util.Reporter
-
getCounterNames
- Specified by:
getCounterNamesin interfacefr.ens.biologie.genomique.kenetre.util.Reporter
-