本文整理汇总了Java中com.espertech.esper.view.ViewResolutionServiceImpl类的典型用法代码示例。如果您正苦于以下问题:Java ViewResolutionServiceImpl类的具体用法?Java ViewResolutionServiceImpl怎么用?Java ViewResolutionServiceImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ViewResolutionServiceImpl类属于com.espertech.esper.view包,在下文中一共展示了ViewResolutionServiceImpl类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makeContext
import com.espertech.esper.view.ViewResolutionServiceImpl; //导入依赖的package包/类
public static StatementContext makeContext(int statementId, SchedulingService stub) {
Configuration config = new Configuration();
config.getEngineDefaults().getViewResources().setAllowMultipleExpiryPolicies(true);
TimeSourceServiceImpl timeSourceService = new TimeSourceServiceImpl();
StatementContextEngineServices stmtEngineServices = new StatementContextEngineServices("engURI",
SupportEventAdapterService.getService(),
new NamedWindowMgmtServiceImpl(false, null),
null, new TableServiceImpl(),
new EngineSettingsService(new Configuration().getEngineDefaults(), new URI[0]),
new ValueAddEventServiceImpl(),
config,
null,
null,
null,
null,
new StatementEventTypeRefImpl(), null, null, null, null, null, new ViewServicePreviousFactoryImpl(), null, new PatternNodeFactoryImpl(), new FilterBooleanExpressionFactoryImpl(), timeSourceService, SupportEngineImportServiceFactory.make(), AggregationFactoryFactoryDefault.INSTANCE, new SchedulingServiceImpl(timeSourceService), null);
return new StatementContext(stmtEngineServices,
stub,
new ScheduleBucket(1),
new EPStatementHandle(statementId, "name1", "epl1", StatementType.SELECT, "epl1", false, null, 0, false, false, new MultiMatchHandlerFactoryImpl().getDefaultHandler()),
new ViewResolutionServiceImpl(new PluggableObjectRegistryImpl(new PluggableObjectCollection[]{ViewEnumHelper.getBuiltinViews()}), null, null),
new PatternObjectResolutionServiceImpl(null),
null,
null,
null,
null,
new StatementResultServiceImpl("name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.Threading())), // statement result svc
null,
null,
null,
null,
null,
null,
null,
false,
null,
null,
AggregationServiceFactoryServiceImpl.DEFAULT_FACTORY,
false,
null, new StatementSemiAnonymousTypeRegistryImpl(), 0);
}
示例2: makeContext
import com.espertech.esper.view.ViewResolutionServiceImpl; //导入依赖的package包/类
public static StatementContext makeContext(SchedulingService stub)
{
VariableServiceImpl variableService = new VariableServiceImpl(1000, null, SupportEventAdapterService.getService(), null);
Configuration config = new Configuration();
config.getEngineDefaults().getViewResources().setAllowMultipleExpiryPolicies(true);
StatementContextEngineServices stmtEngineServices = new StatementContextEngineServices("engURI",
SupportEventAdapterService.getService(),
new NamedWindowServiceImpl(null, variableService, false, new ManagedReadWriteLock("dummyeplock", true), new ExceptionHandlingService("engURI", Collections.<ExceptionHandler>emptyList(), Collections.<ConditionHandler>emptyList()), false, null),
null,
new EngineSettingsService(new Configuration().getEngineDefaults(), new URI[0]),
new ValueAddEventServiceImpl(),
config,
null,
null,
null,
null);
return new StatementContext(stmtEngineServices,
"stmtId",
null,
"stmtName",
"exprHere",
stub,
new ScheduleBucket(1),
null,
new ViewResolutionServiceImpl(new PluggableObjectRegistryImpl(new PluggableObjectCollection[] {ViewEnumHelper.getBuiltinViews()}), null, null),
new PatternObjectResolutionServiceImpl(null),
null,
null,
new MethodResolutionServiceImpl(new EngineImportServiceImpl(true, true, true), null),
null,
null,
new StatementResultServiceImpl("name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.Threading())), // statement result svc
null,
null,
null,
null,
null,
null,
false,
null,
null,
AggregationServiceFactoryServiceImpl.DEFAULT_FACTORY);
}