yuchengxin commented on code in PR #22767:
URL: https://github.com/apache/flink/pull/22767#discussion_r1241116465
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/watermark/WatermarkEmitStrategy.java:
##########
@@ -0,0 +1,50 @@
+package org.apache.flink.table.watermark;
+
+import org.apache.flink.annotation.PublicEvolving;
+
+import java.util.Arrays;
+
+/** The strategy for emitting watermark. */
+@PublicEvolving
+public enum WatermarkEmitStrategy {
+ ON_EVENT("on-event"),
+ ON_PERIODIC("on-periodic"),
+ ;
+
+ private final String alias;
+
+ public String getAlias() {
+ return alias;
+ }
+
+ WatermarkEmitStrategy(String alias) {
+ this.alias = alias;
+ }
+
+ public boolean isOnEvent() {
+ return this == ON_EVENT;
+ }
+
+ public boolean isOnPeriodic() {
+ return this == ON_PERIODIC;
+ }
+
+ @Override
+ public String toString() {
+ return this.alias;
+ }
+
+ public static WatermarkEmitStrategy lookup(String alias) {
Review Comment:
This is a useful method which may be used in later extensions, however it is
not be used currently, i hive removed it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]