|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.JobContext
org.apache.hadoop.mapreduce.TaskAttemptContext
public class TaskAttemptContext
The context for task attempts.
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.mapreduce.JobContext |
|---|
COMBINE_CLASS_ATTR, conf, INPUT_FORMAT_CLASS_ATTR, MAP_CLASS_ATTR, OUTPUT_FORMAT_CLASS_ATTR, PARTITIONER_CLASS_ATTR, REDUCE_CLASS_ATTR |
| Constructor Summary | |
|---|---|
TaskAttemptContext(Configuration conf,
TaskAttemptID taskId)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getStatus()
Get the last set status message. |
TaskAttemptID |
getTaskAttemptID()
Get the unique name for this task attempt. |
void |
progress()
Report progress. |
void |
setStatus(java.lang.String msg)
Set the current status of the task to the given string. |
| Methods inherited from class org.apache.hadoop.mapreduce.JobContext |
|---|
getCombinerClass, getConfiguration, getGroupingComparator, getInputFormatClass, getJar, getJobID, getJobName, getMapOutputKeyClass, getMapOutputValueClass, getMapperClass, getNumReduceTasks, getOutputFormatClass, getOutputKeyClass, getOutputValueClass, getPartitionerClass, getReducerClass, getSortComparator, getWorkingDirectory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskAttemptContext(Configuration conf,
TaskAttemptID taskId)
| Method Detail |
|---|
public TaskAttemptID getTaskAttemptID()
public void setStatus(java.lang.String msg)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getStatus()
public void progress()
progress in interface Progressable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||