org.apache.hadoop.mrunit.mock
Class MockReporter
java.lang.Object
org.apache.hadoop.mrunit.mock.MockReporter
- All Implemented Interfaces:
- org.apache.hadoop.mapred.Reporter, org.apache.hadoop.util.Progressable
public class MockReporter
- extends Object
- implements org.apache.hadoop.mapred.Reporter
Fields inherited from interface org.apache.hadoop.mapred.Reporter |
NULL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockReporter
public MockReporter(MockReporter.ReporterType kind,
org.apache.hadoop.mapred.Counters ctrs)
getInputSplit
public org.apache.hadoop.mapred.InputSplit getInputSplit()
- Specified by:
getInputSplit
in interface org.apache.hadoop.mapred.Reporter
incrCounter
public void incrCounter(Enum<?> key,
long amount)
- Specified by:
incrCounter
in interface org.apache.hadoop.mapred.Reporter
incrCounter
public void incrCounter(String group,
String counter,
long amount)
- Specified by:
incrCounter
in interface org.apache.hadoop.mapred.Reporter
setStatus
public void setStatus(String status)
- Specified by:
setStatus
in interface org.apache.hadoop.mapred.Reporter
progress
public void progress()
- Specified by:
progress
in interface org.apache.hadoop.util.Progressable
getCounter
public org.apache.hadoop.mapred.Counters.Counter getCounter(String group,
String name)
- Specified by:
getCounter
in interface org.apache.hadoop.mapred.Reporter
getCounter
public org.apache.hadoop.mapred.Counters.Counter getCounter(Enum<?> key)
- Specified by:
getCounter
in interface org.apache.hadoop.mapred.Reporter
getProgress
public float getProgress()
Copyright © 2012 Apache Software Foundation. All Rights Reserved.