Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Doc Issue : Apache Spark Streaming guide elaborates UpdateSta…
…teByKey Operation and goes onto give an example. However for complete code sample it referes to {{site.SPARK_GITHUB_URL}}/blob/master/examples/src/main/scala/org/apache"

This reverts commit 65a34c7.
  • Loading branch information
rmishra committed Mar 6, 2016
commit 40a40ed5e3540cd528d2cf7c555243c2b1e6a6d7
5 changes: 4 additions & 1 deletion docs/streaming-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,10 @@ val runningCounts = pairs.updateStateByKey[Int](updateFunction _)
{% endhighlight %}

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.
the `(word, 1)` pairs) and the `runningCount` having the previous count. For the complete
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 data-lang="java" markdown="1">
Expand Down