Skip to content

Commit 18ef2f2

Browse files
rmishrasrowen
authored andcommitted
[SPARK-13705][DOCS] UpdateStateByKey Operation documentation incorrectly refers to StatefulNetworkWordCount
## What changes were proposed in this pull request? The reference to StatefulNetworkWordCount.scala from updateStatesByKey documentation should be removed, till there is a example for updateStatesByKey. ## How was this patch tested? Have tested the new documentation with jekyll build. Author: rmishra <[email protected]> Closes #11545 from rishitesh/SPARK-13705. (cherry picked from commit 4b13896) Signed-off-by: Sean Owen <[email protected]>
1 parent 704a54c commit 18ef2f2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/streaming-programming-guide.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,10 +872,7 @@ val runningCounts = pairs.updateStateByKey[Int](updateFunction _)
872872
{% endhighlight %}
873873

874874
The update function will be called for each word, with `newValues` having a sequence of 1's (from
875-
the `(word, 1)` pairs) and the `runningCount` having the previous count. For the complete
876-
Scala code, take a look at the example
877-
[StatefulNetworkWordCount.scala]({{site.SPARK_GITHUB_URL}}/blob/master/examples/src/main/scala/org/apache
878-
/spark/examples/streaming/StatefulNetworkWordCount.scala).
875+
the `(word, 1)` pairs) and the `runningCount` having the previous count.
879876

880877
</div>
881878
<div data-lang="java" markdown="1">

0 commit comments

Comments
 (0)