Github user kl0u commented on a diff in the pull request:
https://github.com/apache/flink/pull/1764#discussion_r55020209
--- Diff:
flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/DataStream.scala
---
@@ -750,6 +750,34 @@ class DataStream[T](stream: JavaStream[T]) {
}
/**
+ * Assigns timestamps to the elements in the data stream and
periodically creates
+ * watermarks to signal event time progress.
+ *
+ * This method is used for cases where the programmer wants the
Watermarks emitted in
+ * the stream to lag behind the maximum timestamp seen so far by a
fixed period of time.
+ *
+ * For more general cases, use the general methods
+ * [[assignTimestampsAndWatermarks(AssignerWithPeriodicWatermarks)]]
+ * and
[[assignTimestampsAndWatermarks(AssignerWithPunctuatedWatermarks)]].
+ *
+ * @param fixedWatermarkTrailingPeriod the fixed lag between the
currently emitted
+ * watermark and the maximum
timestamp seen so far.
+ * @param extractor the method to extracts the timestamp from a given
record.
+ */
+ @PublicEvolving
+ def
assignTimestampsWithAFixedPeriodTrailingWatermark(fixedWatermarkTrailingPeriod:
Long,
--- End diff --
It is true, although I added it because there was already a method for the
ascending one. If there is a consensus, I can remove it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---