aboutsummaryrefslogtreecommitdiff
path: root/docs/scala-programming-guide.md
diff options
context:
space:
mode:
authorMark Hamstra <markhamstra@gmail.com>2013-02-05 22:19:58 -0800
committerMark Hamstra <markhamstra@gmail.com>2013-02-05 22:19:58 -0800
commit934a53c8b677df524315a75011b4c9396eb4b54e (patch)
tree273cb2e688e393fb6fc52bab8b7d5bd864459c9c /docs/scala-programming-guide.md
parent84587a9bf3c734be151251b97ac5af48eb03f4d9 (diff)
downloadspark-934a53c8b677df524315a75011b4c9396eb4b54e.tar.gz
spark-934a53c8b677df524315a75011b4c9396eb4b54e.tar.bz2
spark-934a53c8b677df524315a75011b4c9396eb4b54e.zip
Change docs on 'reduce' since the merging of local reduces no longer preserves
ordering, so the reduce function must also be commutative.
Diffstat (limited to 'docs/scala-programming-guide.md')
-rw-r--r--docs/scala-programming-guide.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/scala-programming-guide.md b/docs/scala-programming-guide.md
index 7350eca837..95de4f50bb 100644
--- a/docs/scala-programming-guide.md
+++ b/docs/scala-programming-guide.md
@@ -203,7 +203,7 @@ A complete list of transformations is available in the [RDD API doc](api/core/in
<tr><th>Action</th><th>Meaning</th></tr>
<tr>
<td> <b>reduce</b>(<i>func</i>) </td>
- <td> Aggregate the elements of the dataset using a function <i>func</i> (which takes two arguments and returns one). The function should be associative so that it can be computed correctly in parallel. </td>
+ <td> Aggregate the elements of the dataset using a function <i>func</i> (which takes two arguments and returns one). The function should be commutative and associative so that it can be computed correctly in parallel. </td>
</tr>
<tr>
<td> <b>collect</b>() </td>