我想用下面的语法触发一个模式。
EPStatement raiseStmt = cepAdm.createEPL("[1] Event");但是我得到了下面的例外
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)发布于 2014-06-25 00:43:33
"admin.createEPL“方法接受EPL语句,而不仅仅是模式。例如"select * from pattern[1 Event]“。这相当于: admin.createPattern("1事件“)
https://stackoverflow.com/questions/24397900
复制相似问题