本文整理汇总了Java中com.espertech.esper.view.internal.RouteResultView类的典型用法代码示例。如果您正苦于以下问题:Java RouteResultView类的具体用法?Java RouteResultView怎么用?Java RouteResultView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RouteResultView类属于com.espertech.esper.view.internal包,在下文中一共展示了RouteResultView类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: determineOnExprView
import com.espertech.esper.view.internal.RouteResultView; //导入依赖的package包/类
public OnExprViewResult determineOnExprView(AgentInstanceContext agentInstanceContext, List<StopCallback> stopCallbacks, boolean isRecoveringReslient) {
ResultSetProcessor[] processors = new ResultSetProcessor[items.length];
for (int i = 0; i < processors.length; i++) {
ResultSetProcessorFactoryDesc factory = items[i].getFactoryDesc();
ResultSetProcessor processor = factory.getResultSetProcessorFactory().instantiate(null, null, agentInstanceContext);
processors[i] = processor;
}
TableStateInstance[] tableStateInstances = new TableStateInstance[processors.length];
for (int i = 0; i < items.length; i++) {
String tableName = items[i].getInsertIntoTableNames();
if (tableName != null) {
tableStateInstances[i] = agentInstanceContext.getStatementContext().getTableService().getState(tableName, agentInstanceContext.getAgentInstanceId());
}
}
OnTriggerSplitStreamDesc desc = (OnTriggerSplitStreamDesc) statementSpec.getOnTriggerDesc();
View view = new RouteResultView(desc.isFirst(), activatorResultEventType, statementContext.getEpStatementHandle(), services.getInternalEventRouter(), tableStateInstances, items, processors, whereClauseEvals, agentInstanceContext);
return new OnExprViewResult(view, null);
}