Example usage for org.apache.hadoop.mapreduce TaskCompletionEvent isMapTask

List of usage examples for org.apache.hadoop.mapreduce TaskCompletionEvent isMapTask

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce TaskCompletionEvent isMapTask.

Prototype

public boolean isMapTask() 

Source Link

Usage

From source file:cascading.stats.hadoop.HadoopStepStats.java

License:Open Source License

private void addAttemptsToTaskStats(TaskCompletionEvent[] events) {
    for (TaskCompletionEvent event : events) {
        if (event == null) {
            LOG.warn("found empty completion event");
            continue;
        }/* w w  w.j  a  v  a2  s  .  c  o  m*/

        if (event.isMapTask())
            mapperNodeStats.addAttempt(event);
        else
            reducerNodeStats.addAttempt(event);
    }
}