org.apache.hadoop.mapred
Interface Reporter

All Superinterfaces:
Progressable

public interface Reporter
extends Progressable

Passed to application code to permit alteration of status.


Field Summary
static Reporter NULL
          A constant of Reporter type that does nothing.
 
Method Summary
 InputSplit getInputSplit()
          Get the InputSplit object for a map.
 void incrCounter(Enum key, long amount)
          Increments the counter identified by the key, which can be of any enum type, by the specified amount.
 void setStatus(String status)
          Alter the application's status description.
 
Methods inherited from interface org.apache.hadoop.util.Progressable
progress
 

Field Detail

NULL

static final Reporter NULL
A constant of Reporter type that does nothing.

Method Detail

setStatus

void setStatus(String status)
               throws IOException
Alter the application's status description.

Parameters:
status - a brief description of the current status
Throws:
IOException

incrCounter

void incrCounter(Enum key,
                 long amount)
Increments the counter identified by the key, which can be of any enum type, by the specified amount.

Parameters:
key - A value of any enum type
amount - A non-negative amount by which the counter is to be incremented

getInputSplit

InputSplit getInputSplit()
                         throws UnsupportedOperationException
Get the InputSplit object for a map.

Returns:
the input split that the map is reading from
Throws:
UnsupportedOperationException - if called outside a mapper


Copyright © 2006 The Apache Software Foundation