本文整理汇总了Java中com.espertech.esper.epl.declexpr.ExprDeclaredServiceImpl类的典型用法代码示例。如果您正苦于以下问题:Java ExprDeclaredServiceImpl类的具体用法?Java ExprDeclaredServiceImpl怎么用?Java ExprDeclaredServiceImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ExprDeclaredServiceImpl类属于com.espertech.esper.epl.declexpr包,在下文中一共展示了ExprDeclaredServiceImpl类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toExpression
import com.espertech.esper.epl.declexpr.ExprDeclaredServiceImpl; //导入依赖的package包/类
public static ExprForge toExpression(String hint, StatementContext statementContext) throws ExprValidationException {
String toCompile = "select * from java.lang.Object#time(" + hint + ")";
StatementSpecRaw raw = EPAdministratorHelper.compileEPL(toCompile, hint, false, null,
SelectClauseStreamSelectorEnum.ISTREAM_ONLY, statementContext.getEngineImportService(),
statementContext.getVariableService(),
statementContext.getEngineURI(), statementContext.getConfigSnapshot(),
new PatternNodeFactoryImpl(), new ContextManagementServiceImpl(statementContext.getEngineURI()),
new ExprDeclaredServiceImpl(), new TableServiceImpl());
ExprNode expr = raw.getStreamSpecs().get(0).getViewSpecs()[0].getObjectParameters().get(0);
ExprNode validated = EPLValidationUtil.validateSimpleGetSubtree(ExprNodeOrigin.HINT, expr, statementContext, OAEXPRESSIONTYPE, false);
return validated.getForge();
}
示例2: makeWalker
import com.espertech.esper.epl.declexpr.ExprDeclaredServiceImpl; //导入依赖的package包/类
public static EPLTreeWalkerListener makeWalker(CommonTokenStream tokenStream, EngineImportService engineImportService, VariableService variableService) {
return new EPLTreeWalkerListener(tokenStream, engineImportService, variableService, SelectClauseStreamSelectorEnum.ISTREAM_ONLY, "uri", new Configuration(), new PatternNodeFactoryImpl(), null, null, new ExprDeclaredServiceImpl(), new TableServiceImpl());
}
示例3: makeWalker
import com.espertech.esper.epl.declexpr.ExprDeclaredServiceImpl; //导入依赖的package包/类
public static EPLTreeWalker makeWalker(Tree tree, CommonTokenStream tokenStream, EngineImportService engineImportService, VariableService variableService)
{
return new EPLTreeWalker(new CommonTreeNodeStream(tree), tokenStream, engineImportService, variableService, new SupportSchedulingServiceImpl(), SelectClauseStreamSelectorEnum.ISTREAM_ONLY, "uri", new Configuration(), new PatternNodeFactoryImpl(), null, null, new ExprDeclaredServiceImpl());
}