"it.in_degrees = it.inE().count()\n" +
"it.out_degrees = it.outE().count()\n" +
"it.degrees = it.in_degrees + it.out_degrees\n" +
"}";
FaunusPipeline pipeline = new FaunusPipeline(faunusExportGraph);
pipeline.V().sideEffect(sideEffect);
pipeline.done();
logger.debug("starting export of '" + graph.getId() + "'");
FaunusJob faunusJob = new FaunusJob(metaGraphService.getMetaGraph(), jobId, pipeline);
faunusJob.call();
logger.debug("finished export of '" + graph.getId() + "'");
// Filter out all the edges
FaunusGraph faunusImportGraph = faunusExportGraph.getNextGraph();
faunusPipelineService.configureGraph(faunusImportGraph, new Path(tmpDir, "import"), graph);
faunusImportGraph.setGraphOutputFormat(TitanHBaseOutputFormat.class);
faunusImportGraph.getConf().set("faunus.graph.input.vertex-query-filter", "v.query().limit(0)");
pipeline = new FaunusPipeline(faunusImportGraph);
pipeline.V();
pipeline.done();
logger.debug("starting import of '" + graph.getId() + "'");
faunusJob = new FaunusJob(metaGraphService.getMetaGraph(), jobId, pipeline);
faunusJob.call();