本文整理匯總了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);
}