ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Du" <shawn...@neulion.com.cn>
Subject 答复: compute SQL returned data.
Date Mon, 09 Jan 2017 09:30:31 GMT
Thanks, I already figure it out just As you mentioned.


-----邮件原件-----
发件人: dkarachentsev [mailto:dkarachentsev@gridgain.com] 
发送时间: 2017年1月9日 17:24
收件人: user@ignite.apache.org
主题: Re: compute SQL returned data.

Hi Shawn,

For map-reduce operations is most suitable ComputeTask [1], which has
map/reduce methods. In map() method you may select nodes on which start
processing according to key (refer Ignite.affinity() [2,3]). Result will be
reduced and returned to the client.

In summary, client invokes SQL to collect keys and runs ComputeTask`s mapped
on nodes that has keys/values that should be processed (this will allow not
to transfer over network big values).

[1]
https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/compute/C
omputeTask.html
[2]
https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/Ignite.ht
ml#affinity(java.lang.String)
[3]
https://ignite.apache.org/releases/1.8.0/javadoc/org/apache/ignite/cache/aff
inity/Affinity.html



--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/compute-SQL-returned-data-tp9
890p9967.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Mime
View raw message