public class MapTaskAttemptInfo extends TaskAttemptInfo
MapTaskAttemptInfo represents the information with regard to a
map task attempt.allSplits, state, taskInfo| Constructor and 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.
see LoggedTaskAttempt for an explanation of
allSplits.
If there are no known splits, use null. |
MapTaskAttemptInfo(org.apache.hadoop.mapred.TaskStatus.State state,
TaskInfo taskInfo,
long runtime,
List<List<Integer>> allSplits) |
| Modifier and Type | Method and 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,
List<List<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–2020 Apache Software Foundation. All rights reserved.