You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by wc...@apache.org on 2016/04/05 21:37:28 UTC
[04/23] incubator-quarks-website git commit: [QUARKS-64] More updates
to the Hello Quarks! recipe
[QUARKS-64] More updates to the Hello Quarks! recipe
Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/commit/8edb0725
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/tree/8edb0725
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/diff/8edb0725
Branch: refs/heads/master
Commit: 8edb07251b6134ca97a048b5048f3780038bd650
Parents: 066a5bb
Author: Queenie Ma <qu...@gmail.com>
Authored: Wed Mar 30 10:13:00 2016 -0700
Committer: Queenie Ma <qu...@gmail.com>
Committed: Wed Mar 30 10:13:00 2016 -0700
----------------------------------------------------------------------
site/recipes/recipe_hello_quarks.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-quarks-website/blob/8edb0725/site/recipes/recipe_hello_quarks.md
----------------------------------------------------------------------
diff --git a/site/recipes/recipe_hello_quarks.md b/site/recipes/recipe_hello_quarks.md
index 5f69422..07e627f 100644
--- a/site/recipes/recipe_hello_quarks.md
+++ b/site/recipes/recipe_hello_quarks.md
@@ -16,7 +16,7 @@ Quarks' pure Java implementation is a powerful feature which allows it to be run
The *DirectProvider* is an object which allows the user to submit and run the final application. It also creates the *Topology* object, which gives the developer the ability to define a stream of strings.
## Using Topology.strings
-The primary abstraction in Quarks is the `TStream`. A *TStream* represents the flow of data in a Quarks application; for example, the periodic floating point readings from a temperature sensor. The data items which are sent through a `TStream` are Java objects -- in the "Hello Quarks!" example, we are sending a single java.lang.String. There are a number of ways to create a `TStream`, and `Topology.strings` is the simplest. The user specifies a number of strings which will be used as the stream's data items.
+The primary abstraction in Quarks is the `TStream`. A *TStream* represents the flow of data in a Quarks application; for example, the periodic floating point readings from a temperature sensor. The data items which are sent through a `TStream` are Java objects -- in the "Hello Quarks!" example, we are sending two strings. There are a number of ways to create a `TStream`, and `Topology.strings` is the simplest. The user specifies a number of strings which will be used as the stream's data items.
``` java
@@ -30,7 +30,7 @@ The primary abstraction in Quarks is the `TStream`. A *TStream* represents the f
}
```
-The `helloStream` stream is created, and the "Hello Quarks!" string will be sent as its single data item.
+The `helloStream` stream is created, and the "Hello" and "Quarks!" strings will be sent as its two data items.
## Printing to Output
`TStream.print` can be used to print the data items of a stream to standard output by invoking the `toString` method of each data item. In this case the data items are already strings, but in principle `TStream.print` can be called on any stream, regardless of the datatype carried by the stream.