You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2020/07/28 08:09:34 UTC

[flink-statefun] 05/10: [hotfix] [docs] Fix typos in java_walkthrough.md

This is an automated email from the ASF dual-hosted git repository.

tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun.git

commit ea7c3f690d5f5f9dad3b9abc1a6d8f5c4c5c7c7f
Author: Ufuk Celebi <uf...@ververica.com>
AuthorDate: Tue Jun 30 10:31:42 2020 +0200

    [hotfix] [docs] Fix typos in java_walkthrough.md
    
    * Fix typos
    * Add link to Java SDK in further work section
---
 docs/getting-started/java_walkthrough.md | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/docs/getting-started/java_walkthrough.md b/docs/getting-started/java_walkthrough.md
index cec130a..9f650ce 100644
--- a/docs/getting-started/java_walkthrough.md
+++ b/docs/getting-started/java_walkthrough.md
@@ -93,18 +93,19 @@ private static String greetText(String name, int seen) {
             return String.format("Happy to see you once again %s !", name);
         default:
             return String.format("Hello at the %d-th time %s", seen + 1, name);
+    }
 }
 {% endhighlight %}
 
 ## Routing Messages
 
-To send a user a personalized greeting, the system needs to keep track of how many times it has seen each user so far.
+To send a personalized greeting to a user, the system needs to keep track of how many times it has seen each user so far.
 Speaking in general terms, the simplest solution would be to create one function for every user and independently track the number of times they have been seen. Using most frameworks, this would be prohibitively expensive.
 However, stateful functions are virtual and do not consume any CPU or memory when not actively being invoked.
 That means your application can create as many functions as necessary — in this case, users — without worrying about resource consumption.
 
 Whenever data is consumed from an external system (or [ingress]({{ site.baseurl }}/io-module/index.html#ingress)), it is routed to a specific function based on a given function type and identifier.
-The function type represents the Class of function to be invoked, such as the Greeter function, while the identifier (``GreetRequest#getWho``) scopes the call to a specific virtual instance based on some key.
+The function type represents the class of function to be invoked, such as the Greeter function, while the identifier (``GreetRequest#getWho``) scopes the call to a specific virtual instance based on some key.
 
 {% highlight java %}
 package org.apache.flink.statefun.examples.greeter;
@@ -200,3 +201,5 @@ docker-compose exec kafka-broker kafka-console-consumer.sh \
 
 This Greeter never forgets a user.
 Try and modify the function so that it will reset the ``count`` for any user that spends more than 60 seconds without interacting with the system.
+
+Check out the [Java SDK]({{ site.baseurl }}/sdk/java.html) page for more information on how to achieve this.