當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。