package com.infochimps.elasticsearch; import java.io.IOException; import org.apache.hadoop.mapreduce.JobContext; import org.apache.hadoop.mapreduce.OutputCommitter; import org.apache.hadoop.mapreduce.TaskAttemptContext; /** * Small committer class that does not do anything. */ public class ElasticSearchOutputCommitter extends OutputCommitter { @Override public void abortTask(TaskAttemptContext arg0) throws IOException { } @Override public void cleanupJob(JobContext arg0) throws IOException { } @Override public void commitTask(TaskAttemptContext arg0) throws IOException { } @Override public boolean needsTaskCommit(TaskAttemptContext arg0) throws IOException { return false; } @Override public void setupJob(JobContext arg0) throws IOException { } @Override public void setupTask(TaskAttemptContext arg0) throws IOException { } }