123avi commented on a change in pull request #7418: FLINK-11053 Documentation -
update scala sample code for bucketing sink according
URL: https://github.com/apache/flink/pull/7418#discussion_r247153581
##########
File path: docs/dev/connectors/filesystem_sink.md
##########
@@ -105,8 +105,8 @@ Example:
{% highlight java %}
DataStream<Tuple2<IntWritable,Text>> input = ...;
-BucketingSink<String> sink = new BucketingSink<String>("/base/path");
-sink.setBucketer(new DateTimeBucketer<String>("yyyy-MM-dd--HHmm",
ZoneId.of("America/Los_Angeles")));
+BucketingSink<Tuple2<IntWritable,Text>> sink = new
BucketingSink<Tuple2<IntWritable,Text>>("/base/path");
+sink.setBucketer(new DateTimeBuckete("yyyy-MM-dd--HHmm",
ZoneId.of("America/Los_Angeles")));
Review comment:
very well
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services