Example usage for Java org.apache.hadoop.mapreduce TaskAttemptContext fields, constructors, methods, implement or subclass
The text is from its open source code.
Configuration | getConfiguration() Return the configuration for the job. |
Counter | getCounter(String groupName, String counterName) Get the Counter for the given groupName and counterName . |
Counter | getCounter(Enum> counterName) Get the Counter for the given counterName . |
Credentials | getCredentials() Get credentials for the job. |
JobID | getJobID() Get the unique ID for the job. |
String | getJobName() Get the user-specified job name. |
Class extends Mapper,?,?,?>> | getMapperClass() Get the Mapper class for the job. |
int | getNumReduceTasks() Get configured the number of reduce tasks for this job. |
Class extends OutputFormat,?>> | getOutputFormatClass() Get the OutputFormat class for the job. |
Class> | getOutputKeyClass() Get the key class for the job output data. |
Class> | getOutputValueClass() Get the value class for job outputs. |
Class extends Reducer,?,?,?>> | getReducerClass() Get the Reducer class for the job. |
String | getStatus() Get the last set status message. |
TaskAttemptID | getTaskAttemptID() Get the unique name for this task attempt. |
Path | getWorkingDirectory() Get the current working directory for the default file system. |
void | progress() Report progress to the Hadoop framework. |
void | setStatus(String msg) Set the current status of the task to the given string. |