package com.tinkerpop.gremlin.giraph.structure.io.kryo;
import org.apache.giraph.io.VertexOutputFormat;
import org.apache.giraph.io.VertexWriter;
import org.apache.hadoop.mapred.FileOutputCommitter;
import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.OutputCommitter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import java.io.IOException;
/**
* @author Joshua Shinavier (http://fortytwo.net)
*/
public class KryoVertexOutputFormat extends VertexOutputFormat {
@Override
public VertexWriter createVertexWriter(TaskAttemptContext context) throws IOException, InterruptedException {
return new KryoVertexWriter();
}
@Override
public void checkOutputSpecs(JobContext context) throws IOException, InterruptedException {
}
@Override
public OutputCommitter getOutputCommitter(TaskAttemptContext context) throws IOException, InterruptedException {
return new FileOutputCommitter();
}
}