flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject [1/2] flink git commit: [docs] Fix TumblingTimeWindows.of(AbstractTime) examples
Date Sun, 06 Dec 2015 15:17:46 GMT
Repository: flink
Updated Branches:
  refs/heads/release-0.10 2afe60094 -> 319e18045


[docs] Fix TumblingTimeWindows.of(AbstractTime) examples

Added Time.of(Time), because there is no TumblingTimeWindows.of(int, TimeUnit).


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/319e1804
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/319e1804
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/319e1804

Branch: refs/heads/release-0.10
Commit: 319e18045621503354e01f4c415f34b081764f33
Parents: 33efba6
Author: Ufuk Celebi <uce@apache.org>
Authored: Sun Dec 6 16:07:39 2015 +0100
Committer: Ufuk Celebi <uce@apache.org>
Committed: Sun Dec 6 16:17:22 2015 +0100

----------------------------------------------------------------------
 docs/apis/streaming_guide.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/319e1804/docs/apis/streaming_guide.md
----------------------------------------------------------------------
diff --git a/docs/apis/streaming_guide.md b/docs/apis/streaming_guide.md
index 2500a19..65ffa70 100644
--- a/docs/apis/streaming_guide.md
+++ b/docs/apis/streaming_guide.md
@@ -578,7 +578,7 @@ keyedStream.maxBy("key");
             key according to some characteristic (e.g., the data that arrived within the
last 5 seconds).
             See <a href="#windows">windows</a> for a complete description of
windows.
     {% highlight java %}
-dataStream.keyBy(0).window(TumblingTimeWindows.of(5, TimeUnit.SECONDS)); // Last 5 seconds
of data
+dataStream.keyBy(0).window(TumblingTimeWindows.of(Time.of(5, TimeUnit.SECONDS))); // Last
5 seconds of data
     {% endhighlight %}
         </p>
           </td>
@@ -941,7 +941,7 @@ keyedStream.maxBy("key")
             key according to some characteristic (e.g., the data that arrived within the
last 5 seconds).
             See <a href="#windows">windows</a> for a description of windows.
     {% highlight scala %}
-dataStream.keyBy(0).window(TumblingTimeWindows.of(5, TimeUnit.SECONDS)) // Last 5 seconds
of data // Last 5 seconds of data
+dataStream.keyBy(0).window(TumblingTimeWindows.of(Time.of(5, TimeUnit.SECONDS))) // Last
5 seconds of data
     {% endhighlight %}
         </p>
           </td>


Mime
View raw message