org.apache.hadoop.mrunit.mock
Class MockReporter

java.lang.Object
  extended by 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


Nested Class Summary
static class MockReporter.ReporterType
           
 
Field Summary
 
Fields inherited from interface org.apache.hadoop.mapred.Reporter
NULL
 
Constructor Summary
MockReporter(MockReporter.ReporterType kind, org.apache.hadoop.mapred.Counters ctrs)
           
 
Method Summary
 org.apache.hadoop.mapred.Counters.Counter getCounter(Enum<?> key)
           
 org.apache.hadoop.mapred.Counters.Counter getCounter(String group, String name)
           
 org.apache.hadoop.mapred.InputSplit getInputSplit()
           
 float getProgress()
           
 void incrCounter(Enum<?> key, long amount)
           
 void incrCounter(String group, String counter, long amount)
           
 void progress()
           
 void setStatus(String status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockReporter

public MockReporter(MockReporter.ReporterType kind,
                    org.apache.hadoop.mapred.Counters ctrs)
Method Detail

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 The Apache Software Foundation. All Rights Reserved.