Skip to content

Commit

Permalink
[javaDocs] Fix JavaDoc examples in tumbling and sliding time windows
Browse files Browse the repository at this point in the history
This closes apache#1490
  • Loading branch information
vasia authored and fhueske committed Jan 7, 2016
1 parent 3da24a0 commit d31b00d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
* For example, in order to window into windows of 1 minute, every 10 seconds:
* <pre> {@code
* DataStream<Tuple2<String, Integer>> in = ...;
* KeyedStream<String, Tuple2<String, Integer>> keyed = in.keyBy(...);
* WindowedStream<Tuple2<String, Integer>, String, TimeWindows> windowed =
* keyed.window(SlidingTimeWindows.of(Time.of(1, MINUTES), Time.of(10, SECONDS));
* KeyedStream<Tuple2<String, Integer>, String> keyed = in.keyBy(...);
* WindowedStream<Tuple2<String, Integer>, String, TimeWindow> windowed =
* keyed.window(SlidingTimeWindows.of(Time.minutes(1), Time.seconds(10)));
* } </pre>
*/
public class SlidingTimeWindows extends WindowAssigner<Object, TimeWindow> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
* elements. Windows cannot overlap.
*
* <p>
* For example, in order to window into windows of 1 minute, every 10 seconds:
* For example, in order to window into windows of 1 minute:
* <pre> {@code
* DataStream<Tuple2<String, Integer>> in = ...;
* KeyedStream<String, Tuple2<String, Integer>> keyed = in.keyBy(...);
* WindowedStream<Tuple2<String, Integer>, String, TimeWindows> windowed =
* keyed.window(TumblingTimeWindows.of(Time.of(1, MINUTES), Time.of(10, SECONDS));
* KeyedStream<Tuple2<String, Integer>, String> keyed = in.keyBy(...);
* WindowedStream<Tuple2<String, Integer>, String, TimeWindow> windowed =
* keyed.window(TumblingTimeWindows.of(Time.minutes(1)));
* } </pre>
*/
public class TumblingTimeWindows extends WindowAssigner<Object, TimeWindow> {
Expand Down

0 comments on commit d31b00d

Please sign in to comment.