Example usage for org.apache.hadoop.mapreduce TaskAttemptID isMap

List of usage examples for org.apache.hadoop.mapreduce TaskAttemptID isMap

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce TaskAttemptID isMap.

Prototype

@Deprecated
public boolean isMap() 

Source Link

Document

Returns whether this TaskID is a map ID

Usage

From source file:org.apache.blur.mapreduce.lib.BlurOutputCommitter.java

License:Apache License

@Override
public boolean needsTaskCommit(TaskAttemptContext context) throws IOException {
    int numReduceTasks = context.getNumReduceTasks();
    TaskAttemptID taskAttemptID = context.getTaskAttemptID();
    return taskAttemptID.isMap() && numReduceTasks != 0 ? false : true;
}