use of org.apache.ignite.internal.processors.hadoop.HadoopTaskOutput in project ignite by apache.
the class HadoopRunnableTask method runTask.
/**
* @param perfCntr Performance counter.
* @throws IgniteCheckedException If failed.
*/
private void runTask(HadoopPerformanceCounter perfCntr) throws IgniteCheckedException {
if (cancelled)
throw new HadoopTaskCancelledException("Task cancelled.");
try (HadoopTaskOutput out = createOutputInternal(ctx);
HadoopTaskInput in = createInputInternal(ctx)) {
ctx.input(in);
ctx.output(out);
perfCntr.onTaskStart(ctx.taskInfo(), U.currentTimeMillis());
ctx.run();
}
}
Aggregations