首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Esper重复模式

Esper重复模式
EN

Stack Overflow用户
提问于 2014-06-24 23:23:03
回答 1查看 409关注 0票数 0

我想用下面的语法触发一个模式。

代码语言:javascript
复制
EPStatement raiseStmt = cepAdm.createEPL("[1] Event");

但是我得到了下面的例外

代码语言:javascript
复制
Exception in thread "main" com.espertech.esper.client.EPStatementSyntaxException: Incorrect syntax near '[' [[1] Event]
    at com.espertech.esper.epl.parse.ExceptionConvertor.convertStatement(ExceptionConvertor.java:47)
    at com.espertech.esper.epl.parse.ParseHelper.parse(ParseHelper.java:112)
    at com.espertech.esper.core.service.EPAdministratorHelper.compileEPL(EPAdministratorHelper.java:99)
    at com.espertech.esper.core.service.EPAdministratorHelper.compileEPL(EPAdministratorHelper.java:71)
    at com.espertech.esper.core.service.EPAdministratorImpl.createEPLStmt(EPAdministratorImpl.java:116)
    at com.espertech.esper.core.service.EPAdministratorImpl.createEPL(EPAdministratorImpl.java:66)
    at exampleMain.main(exampleMain.java:202)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-25 00:43:33

"admin.createEPL“方法接受EPL语句,而不仅仅是模式。例如"select * from pattern[1 Event]“。这相当于: admin.createPattern("1事件“)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24397900

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档