[ https://issues.apache.org/jira/browse/TINKERPOP-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092629#comment-15092629 ]
ASF GitHub Bot commented on TINKERPOP-320: ------------------------------------------ GitHub user dkuppitz opened a pull request: https://github.com/apache/incubator-tinkerpop/pull/197 TINKERPOP-320 BulkDumperVertexProgram Easiest vertex program ever. In order to export a graph, all you need is an OutputFormat and a VP that does nothing. VP implemented, test added, updated CHANGELOG and reference docs. VOTE: +1 You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/incubator-tinkerpop TINKERPOP-320 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-tinkerpop/pull/197.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #197 ---- commit bdfd49023b2dbaab531035b618f9a2d461228172 Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Date: 2016-01-08T19:17:45Z implemented BulkDumperVertexProgram + integration tests commit 43eaf8dda431f5deedf0f2725d9c87f0bf58aa47 Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Date: 2016-01-08T19:19:39Z Merge remote-tracking branch 'origin/master' into TINKERPOP-320 commit 53f28d4b8cf2dc89e492e82a7836e70dcfa9e559 Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Date: 2016-01-09T14:03:36Z added import for BulkDumperVertexProgram to console standard imports commit d7ae9236bd2a08212f0aa6ac1547bd7b3da95d68 Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Date: 2016-01-11T16:46:23Z updated CHANGELOG and reference docs commit 96388ee83537bc7e2d5a15d3323e15b81b6a50d7 Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Date: 2016-01-11T16:48:00Z Merge branch 'master' into TINKERPOP-320 Resolved Conflicts: CHANGELOG.asciidoc ---- > 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)