summaryrefslogtreecommitdiff
path: root/groot-common
diff options
context:
space:
mode:
author王宽 <[email protected]>2024-08-01 10:32:19 +0000
committer王宽 <[email protected]>2024-08-01 10:32:19 +0000
commitdf126a194232fe5b5f68ba4fc4fa0b7acd628050 (patch)
tree8226a53d125a4bda993e28f4b24ba5ebc55a48a1 /groot-common
parent0b3bc65eb23f3b09b43dd61083631766a0e4d095 (diff)
parentc0a2e18f14fd495d80e047b90e5afb0abcb9602c (diff)
Merge branch 'feature/aggregate' into 'develop'
[improve][core]aggregate processor增加window_timestamp_field配置 See merge request galaxy/platform/groot-stream!85
Diffstat (limited to 'groot-common')
-rw-r--r--groot-common/src/main/java/com/geedgenetworks/common/config/AggregateConfigOptions.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/groot-common/src/main/java/com/geedgenetworks/common/config/AggregateConfigOptions.java b/groot-common/src/main/java/com/geedgenetworks/common/config/AggregateConfigOptions.java
index 3998a3b..0b0379d 100644
--- a/groot-common/src/main/java/com/geedgenetworks/common/config/AggregateConfigOptions.java
+++ b/groot-common/src/main/java/com/geedgenetworks/common/config/AggregateConfigOptions.java
@@ -5,6 +5,8 @@ import com.geedgenetworks.common.udf.UDFContext;
import java.util.List;
+import static com.geedgenetworks.common.Event.WINDOW_START_TIMESTAMP;
+
public interface AggregateConfigOptions {
Option<String> TYPE = Options.key("type")
.stringType()
@@ -46,4 +48,8 @@ public interface AggregateConfigOptions {
.noDefaultValue()
.withDescription("The size of sliding window.");
+ Option<String> WINDOW_TIMESTAMP_FIELD = Options.key("window_timestamp_field")
+ .stringType()
+ .noDefaultValue()
+ .withDescription("which field to be set the start time of window.");
}