[ https://issues.apache.org/jira/browse/TINKERPOP-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15096111#comment-15096111 ]
ASF GitHub Bot commented on TINKERPOP-320: ------------------------------------------ Github user asfgit closed the pull request at: https://github.com/apache/incubator-tinkerpop/pull/197 > BulkDumperVertexProgram > ----------------------- > > Key: TINKERPOP-320 > URL: https://issues.apache.org/jira/browse/TINKERPOP-320 > Project: TinkerPop > Issue Type: Improvement > Components: process, structure > Affects Versions: 3.0.2-incubating > Reporter: Marko A. Rodriguez > Assignee: Daniel Kuppitz > > This is another trivial "bulker" that is vendor agnostic. For any {{Graph}} > that provides a {{GraphComputer}}, {{BulkDumpingMapReduce}} is executed as > such: > {code} > g.compute().mapReduce(BulkDumpingMapReduce.build().output('dir/').writer(GraphSONWriter.class).create()).submit() > {code} > The implementation is: > {code} > public BulkDumpingMapReduce implements MapReduce { > public void map(vertex, emitter) { > StringBufferThingy vertexString = new StringBufferThingy() > graphSONWriter.write(vertex,stringBufferStreamThingy); > emitter.emit(vertexString.toString()); > } > } > {code} > NOTES: > * MapReduce generates a key/value pair result set. Thus, > {{MapReduce.generateResult()}} would need to clip off the key and write the > value to the output location. -- This message was sent by Atlassian JIRA (v6.3.4#6332)