public class TaskAttemptContext extends JobContext implements Progressable
COMBINE_CLASS_ATTR, conf, INPUT_FORMAT_CLASS_ATTR, MAP_CLASS_ATTR, OUTPUT_FORMAT_CLASS_ATTR, PARTITIONER_CLASS_ATTR, REDUCE_CLASS_ATTR
Constructor and Description |
---|
TaskAttemptContext(Configuration conf,
TaskAttemptID taskId) |
Modifier and Type | Method and Description |
---|---|
String |
getStatus()
Get the last set status message.
|
TaskAttemptID |
getTaskAttemptID()
Get the unique name for this task attempt.
|
void |
progress()
Report progress.
|
void |
setStatus(String msg)
Set the current status of the task to the given string.
|
getCombinerClass, getConfiguration, getGroupingComparator, getInputFormatClass, getJar, getJobID, getJobName, getMapOutputKeyClass, getMapOutputValueClass, getMapperClass, getNumReduceTasks, getOutputFormatClass, getOutputKeyClass, getOutputValueClass, getPartitionerClass, getReducerClass, getSortComparator, getWorkingDirectory
public TaskAttemptContext(Configuration conf, TaskAttemptID taskId)
public TaskAttemptID getTaskAttemptID()
public void setStatus(String msg) throws IOException
IOException
public String getStatus()
public void progress()
progress
in interface Progressable
Copyright © 2010 The Apache Software Foundation