[ https://issues.apache.org/jira/browse/BEAM-7475?focusedWorklogId=266276&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-266276 ]
ASF GitHub Bot logged work on BEAM-7475: ---------------------------------------- Author: ASF GitHub Bot Created on: 25/Jun/19 02:05 Start Date: 25/Jun/19 02:05 Worklog Time Spent: 10m Work Description: aaltay commented on pull request #8803: [BEAM-7475] update wordcount example URL: https://github.com/apache/beam/pull/8803#discussion_r296980410 ########## File path: website/src/get-started/wordcount-example.md ########## @@ -1362,7 +1379,20 @@ PCollection<KV<String, Long>> wordCounts = windowedWords.apply(new WordCount.Cou ``` ```py -# This feature is not yet available in the Beam SDK for Python. +class CountWordsFn(Dofn): + def __init__(self): Review comment: I think we can drop the counter and __init__ for this snippet. (and `self.words_counter.inc(len(words)) below. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 266276) > Add Python stateful processing example in blog > ---------------------------------------------- > > Key: BEAM-7475 > URL: https://issues.apache.org/jira/browse/BEAM-7475 > Project: Beam > Issue Type: Improvement > Components: website > Reporter: Rakesh Kumar > Assignee: Rakesh Kumar > Priority: Major > Time Spent: 4h 20m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)