Wso2 Siddhi覆盖事件时间戳

Wso2 Siddhi覆盖事件时间戳,wso2,siddhi,Wso2,Siddhi,我在WSO2 Siddhi CEP中有以下来源: @source(type='kafka', topic.list='userInfo', partition.no.list='0', threading.option='single.thread', group.id="threadAccessor", bootstrap.servers='localhost:9092', @map(type='json', @attributes(USERID

我在WSO2 Siddhi CEP中有以下来源:

@source(type='kafka',
    topic.list='userInfo',
    partition.no.list='0',
    threading.option='single.thread',
    group.id="threadAccessor",
    bootstrap.servers='localhost:9092',
    @map(type='json', @attributes(USERID = '$.USERID', tst = '$.TST', ACTIVITY = '$.ACTIVITY', AVG_HBR = '$.AVG_HBR')))
define stream SweetProductionStream (USERID string, tst long, ACTIVITY string, AVG_HBR int);
是否有方法使用映射覆盖函数
eventTimestamp()
返回的值?有可能吗? 我知道它适用于
externalTimeWindow
,但我想使用自己的时间戳进行模式查找


谢谢。

事件的时间戳是不可变的,您只能使用
eventTimestamp()
访问其时间戳。如果您需要使用自己的时间戳,那么将其作为流中的属性并使用它


我不确定您在源代码中试图实现什么。您可以在消息中传递时间戳并提取它,然后将其用作属性。您可以在处理externalTimeWindow时传递此属性,也可以在使用模式时使用该属性并与其他属性一起定义时基条件

是的,我知道
externalTimeWindow
,但我没有看到任何关于模式匹配的时基条件的信息。