Skip to content
Snippets Groups Projects
Commit 4b13896e authored by rmishra's avatar rmishra Committed by Sean Owen
Browse files

[SPARK-13705][DOCS] UpdateStateByKey Operation documentation incorrectly...

[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 <rmishra@pivotal.io>

Closes #11545 from rishitesh/SPARK-13705.
parent bc7a3ec2
No related branches found
No related tags found
No related merge requests found
...@@ -872,10 +872,7 @@ val runningCounts = pairs.updateStateByKey[Int](updateFunction _) ...@@ -872,10 +872,7 @@ val runningCounts = pairs.updateStateByKey[Int](updateFunction _)
{% endhighlight %} {% endhighlight %}
The update function will be called for each word, with `newValues` having a sequence of 1's (from The update function will be called for each word, with `newValues` having a sequence of 1's (from
the `(word, 1)` pairs) and the `runningCount` having the previous count. For the complete the `(word, 1)` pairs) and the `runningCount` having the previous count.
Scala code, take a look at the example
[StatefulNetworkWordCount.scala]({{site.SPARK_GITHUB_URL}}/blob/master/examples/src/main/scala/org/apache
/spark/examples/streaming/StatefulNetworkWordCount.scala).
</div> </div>
<div data-lang="java" markdown="1"> <div data-lang="java" markdown="1">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment