You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Daniel Kuppitz (JIRA)" <ji...@apache.org> on 2016/01/13 13:30:39 UTC
[jira] [Closed] (TINKERPOP-320) BulkDumperVertexProgram
[ https://issues.apache.org/jira/browse/TINKERPOP-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kuppitz closed TINKERPOP-320.
------------------------------------
Resolution: Fixed
Fix Version/s: 3.1.1-incubating
> 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
> Fix For: 3.1.1-incubating
>
>
> 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)