public class MapTaskAttemptInfo extends TaskAttemptInfo
MapTaskAttemptInfo represents the information with regard to a
map task attempt.allSplits, state, taskInfo| Constructor | Description |
|---|---|
MapTaskAttemptInfo(org.apache.hadoop.mapred.TaskStatus.State state,
TaskInfo taskInfo,
long runtime) |
Deprecated.
please use the constructor with
(state, taskInfo, runtime,
List<List<Integer>> allSplits)
instead. |
MapTaskAttemptInfo(org.apache.hadoop.mapred.TaskStatus.State state,
TaskInfo taskInfo,
long runtime,
java.util.List<java.util.List<java.lang.Integer>> allSplits) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getMapRuntime() |
Get the runtime for the map phase of the map-task attempt.
|
long |
getRuntime() |
Get the total runtime for the task-attempt.
|
getRunState, getSplitVector, getTaskInfopublic MapTaskAttemptInfo(org.apache.hadoop.mapred.TaskStatus.State state,
TaskInfo taskInfo,
long runtime,
java.util.List<java.util.List<java.lang.Integer>> allSplits)
@Deprecated
public MapTaskAttemptInfo(org.apache.hadoop.mapred.TaskStatus.State state,
TaskInfo taskInfo,
long runtime)
(state, taskInfo, runtime,
List<List<Integer>> allSplits)
instead.
see LoggedTaskAttempt for an explanation of
allSplits.
If there are no known splits, use null.public long getRuntime()
TaskAttemptInfogetRuntime in class TaskAttemptInfopublic long getMapRuntime()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.