[ 
https://issues.apache.org/jira/browse/TINKERPOP-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092675#comment-15092675
 ] 

ASF GitHub Bot commented on TINKERPOP-320:
------------------------------------------

Github user okram commented on the pull request:

    
https://github.com/apache/incubator-tinkerpop/pull/197#issuecomment-170689534
  
    `mvn clean install`d and ran integration tests for `spark-gremlin/`. VOTE 
+1.


> 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)

Reply via email to