当前位置: 首页>>代码示例>>Java>>正文


Java ViewResolutionServiceImpl类代码示例

本文整理汇总了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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:44,代码来源:SupportStatementContextFactory.java

示例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);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:46,代码来源:SupportStatementContextFactory.java


注:本文中的com.espertech.esper.view.ViewResolutionServiceImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。