[
https://issues.apache.org/jira/browse/IGNITE-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639445#comment-14639445
]
Irina Vasilinets commented on IGNITE-963:
-----------------------------------------
Added nodejs class Compute with methods:
function run (job, args); - where job is a js function that will be executed in
Java javascript engine nashorn on server Ignite node; args - arguments for the
function
function affinityRun(cacheName, key, job, args) - run job on primary node for
key.
function mapReduce(map, reduce, arg, callback):
- map: js function that takes list of nodes as a first parameter and its
arguments as second parameter. User should call emit (job, jobArg, node); to
map job with jobArg arguments to node.
- reduces: js function that takes jobs results as argument.
Add tests for methods
> node.js: implement mapreduce support
> ------------------------------------
>
> Key: IGNITE-963
> URL: https://issues.apache.org/jira/browse/IGNITE-963
> Project: Ignite
> Issue Type: Sub-task
> Components: interop
> Reporter: Yakov Zhdanov
> Fix For: sprint-7
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)