com.thinkaurelius.titan.hadoop.formats.graphson.GraphSONOutputFormat Maven / Gradle / Ivy
package com.thinkaurelius.titan.hadoop.formats.graphson;
import com.thinkaurelius.titan.hadoop.FaunusVertex;
import com.thinkaurelius.titan.hadoop.formats.HadoopFileOutputFormat;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.RecordWriter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import java.io.IOException;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class GraphSONOutputFormat extends HadoopFileOutputFormat {
@Override
public RecordWriter getRecordWriter(final TaskAttemptContext job) throws IOException, InterruptedException {
return new GraphSONRecordWriter(new HadoopGraphSONUtility(faunusConf), super.getDataOuputStream(job));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy