SubGraph graph = CypherResultSubGraph.from(result, db, c.getRelsInBetween());
String source = String.format("statement: nodes(%d), rels(%d)",
Iterables.count(graph.getNodes()), Iterables.count(graph.getRelationships()));
return exportCypher(fileName, source, graph, c);
}
<BUG>private Stream<ProgressInfo> exportCypher(@Name("file") String fileName, String source, SubGraph graph, ExportConfig c) throws IOException {
ProgressReporter reporter = new ProgressReporter(null, null, new ProgressInfo(fileName, source, "cypher"));</BUG>
PrintWriter printWriter = getPrintWriter(fileName, null);
MultiStatementCypherSubGraphExporter exporter = new MultiStatementCypherSubGraphExporter(graph);
exporter.export(printWriter, c.getBatchSize(), reporter);

SubGraph graph = CypherResultSubGraph.from(result, db, c.getRelsInBetween());
String source = String.format("statement: nodes(%d), rels(%d)",
Iterables.count(graph.getNodes()), Iterables.count(graph.getRelationships()));
return exportCypher(fileName, source, graph, c);
}
private Stream<ProgressInfo> exportCypher(@Name("file") String fileName, String source, SubGraph graph, ExportConfig c) throws IOException {
checkWriteAllowed();
ProgressReporter reporter = new ProgressReporter(null, null, new ProgressInfo(fileName, source, "cypher"));
PrintWriter printWriter = getPrintWriter(fileName, null);
MultiStatementCypherSubGraphExporter exporter = new MultiStatementCypherSubGraphExporter(graph);
exporter.export(printWriter, c.getBatchSize(), reporter);
