Example usage for org.apache.hadoop.mapred TaskID getId

List of usage examples for org.apache.hadoop.mapred TaskID getId

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred TaskID getId.

Prototype

public int getId() 

Source Link

Document

returns the int which represents the identifier

Usage

From source file:org.apache.tez.mapreduce.hadoop.IDConverter.java

License:Apache License

public static TezTaskID fromMRTaskId(org.apache.hadoop.mapreduce.TaskID taskid) {
    return TezTaskID.getInstance(TezVertexID.getInstance(fromMRJobId(taskid.getJobID()),
            (taskid.getTaskType() == TaskType.MAP ? 0 : 1)), taskid.getId());
}