Author: dsetrakyan
Date: Thu Mar 5 02:34:29 2015
New Revision: 1664206
URL: http://svn.apache.org/r1664206
Log:
fixing examples
Modified:
incubator/ignite/site/trunk/features.html
Modified: incubator/ignite/site/trunk/features.html
URL:
http://svn.apache.org/viewvc/incubator/ignite/site/trunk/features.html?rev=1664206&r1=1664205&r2=1664206&view=diff
==============================================================================
--- incubator/ignite/site/trunk/features.html (original)
+++ incubator/ignite/site/trunk/features.html Thu Mar 5 02:34:29 2015
@@ -260,14 +260,14 @@ under the License.
</div>
<div class="tab-pane" id="compute-example-runnable">
<pre class="brush:java">
- Collection<IgniteCallable<Integer>> calls = new
ArrayList<>();
+ Collection<IgniteCallable<Integer>>
calls = new ArrayList<>();
// Iterate through all words in the sentence and
create callable jobs.
for (String word : "How Many Characters".split("
"))
calls.add(word::length);
// Execute collection of callables on the Ignite
cluster.
- Collection<Integer> res =
ignite.compute().call(calls);
+ Collection<Integer> res =
ignite.compute().call(calls);
// Add all the word lengths received from cluster
nodes.
int total =
res.stream().mapToInt(Integer::intValue).sum();
@@ -278,7 +278,7 @@ under the License.
IgniteCompute compute = ignite.compute();
// Execute closure on all cluster nodes.
- Collection<Integer> res = ignite.compute().apply(
+ Collection<Integer> res =
ignite.compute().apply(
String::length,
Arrays.asList("How Many Characters".split(" "))
);