本文整理汇总了Java中com.espertech.esper.epl.declexpr.ExprDeclaredService类的典型用法代码示例。如果您正苦于以下问题:Java ExprDeclaredService类的具体用法?Java ExprDeclaredService怎么用?Java ExprDeclaredService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ExprDeclaredService类属于com.espertech.esper.epl.declexpr包,在下文中一共展示了ExprDeclaredService类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: map
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public static StatementSpecRaw map(EPStatementObjectModel sodaStatement, EngineImportService engineImportService, VariableService variableService, ConfigurationInformation configuration, String engineURI, PatternNodeFactory patternNodeFactory, NamedWindowMgmtService namedWindowMgmtService, ContextManagementService contextManagementService, ExprDeclaredService exprDeclaredService, TableService tableService) {
com.espertech.esper.core.context.util.ContextDescriptor contextDescriptor = null;
if (sodaStatement.getContextName() != null) {
contextDescriptor = contextManagementService.getContextDescriptor(sodaStatement.getContextName());
}
StatementSpecMapContext mapContext = new StatementSpecMapContext(engineImportService, variableService, configuration, engineURI, patternNodeFactory, namedWindowMgmtService, contextManagementService, exprDeclaredService, contextDescriptor, tableService);
StatementSpecRaw raw = map(sodaStatement, mapContext);
if (mapContext.isHasVariables()) {
raw.setHasVariables(true);
}
raw.setReferencedVariables(mapContext.getVariableNames());
raw.setTableExpressions(mapContext.getTableExpressions());
return raw;
}
示例2: StatementSpecMapContext
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public StatementSpecMapContext(EngineImportService engineImportService, VariableService variableService, ConfigurationInformation configuration, String engineURI, PatternNodeFactory patternNodeFactory, NamedWindowMgmtService namedWindowMgmtService, ContextManagementService contextManagementService, ExprDeclaredService exprDeclaredService, ContextDescriptor contextDescriptor, TableService tableService) {
this.engineImportService = engineImportService;
this.variableService = variableService;
this.configuration = configuration;
this.variableNames = new HashSet<String>();
this.engineURI = engineURI;
this.patternNodeFactory = patternNodeFactory;
this.namedWindowMgmtService = namedWindowMgmtService;
this.contextManagementService = contextManagementService;
this.exprDeclaredService = exprDeclaredService;
this.contextDescriptor = contextDescriptor;
this.tableService = tableService;
}
示例3: EPLTreeWalkerListener
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public EPLTreeWalkerListener(CommonTokenStream tokenStream,
EngineImportService engineImportService,
VariableService variableService,
SelectClauseStreamSelectorEnum defaultStreamSelector,
String engineURI,
ConfigurationInformation configurationInformation,
PatternNodeFactory patternNodeFactory,
ContextManagementService contextManagementService,
List<String> scriptBodies,
ExprDeclaredService exprDeclaredService,
TableService tableService) {
this.tokenStream = tokenStream;
this.engineImportService = engineImportService;
this.variableService = variableService;
this.defaultStreamSelector = defaultStreamSelector;
this.patternNodeFactory = patternNodeFactory;
this.engineURI = engineURI;
this.configurationInformation = configurationInformation;
this.contextManagementService = contextManagementService;
this.scriptBodies = scriptBodies;
this.exprDeclaredService = exprDeclaredService;
this.tableService = tableService;
if (defaultStreamSelector == null) {
throw ASTWalkException.from("Default stream selector is null");
}
statementSpec = new StatementSpecRaw(defaultStreamSelector);
statementSpecStack = new Stack<>();
astExprNodeMapStack = new Stack<>();
// statement-global items
expressionDeclarations = new ExpressionDeclDesc();
statementSpec.setExpressionDeclDesc(expressionDeclarations);
scriptExpressions = new ArrayList<>(1);
statementSpec.setScriptExpressions(scriptExpressions);
}
示例4: StatementContextEngineServices
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public StatementContextEngineServices(String engineURI, EventAdapterService eventAdapterService, NamedWindowMgmtService namedWindowMgmtService, VariableService variableService, TableService tableService, EngineSettingsService engineSettingsService, ValueAddEventService valueAddEventService, ConfigurationInformation configSnapshot, MetricReportingServiceSPI metricReportingService, ViewService viewService, ExceptionHandlingService exceptionHandlingService, ExpressionResultCacheService expressionResultCacheService, StatementEventTypeRef statementEventTypeRef, TableExprEvaluatorContext tableExprEvaluatorContext, EngineLevelExtensionServicesContext engineLevelExtensionServicesContext, RegexHandlerFactory regexHandlerFactory, StatementLockFactory statementLockFactory, ContextManagementService contextManagementService, ViewServicePreviousFactory viewServicePreviousFactory, EventTableIndexService eventTableIndexService, PatternNodeFactory patternNodeFactory, FilterBooleanExpressionFactory filterBooleanExpressionFactory, TimeSourceService timeSourceService, EngineImportService engineImportService, AggregationFactoryFactory aggregationFactoryFactory, SchedulingService schedulingService, ExprDeclaredService exprDeclaredService) {
this.engineURI = engineURI;
this.eventAdapterService = eventAdapterService;
this.namedWindowMgmtService = namedWindowMgmtService;
this.variableService = variableService;
this.tableService = tableService;
this.engineSettingsService = engineSettingsService;
this.valueAddEventService = valueAddEventService;
this.configSnapshot = configSnapshot;
this.metricReportingService = metricReportingService;
this.viewService = viewService;
this.exceptionHandlingService = exceptionHandlingService;
this.expressionResultCacheService = expressionResultCacheService;
this.statementEventTypeRef = statementEventTypeRef;
this.tableExprEvaluatorContext = tableExprEvaluatorContext;
this.engineLevelExtensionServicesContext = engineLevelExtensionServicesContext;
this.regexHandlerFactory = regexHandlerFactory;
this.statementLockFactory = statementLockFactory;
this.contextManagementService = contextManagementService;
this.viewServicePreviousFactory = viewServicePreviousFactory;
this.eventTableIndexService = eventTableIndexService;
this.patternNodeFactory = patternNodeFactory;
this.filterBooleanExpressionFactory = filterBooleanExpressionFactory;
this.timeSourceService = timeSourceService;
this.engineImportService = engineImportService;
this.aggregationFactoryFactory = aggregationFactoryFactory;
this.schedulingService = schedulingService;
this.exprDeclaredService = exprDeclaredService;
}
示例5: StatementSpecMapContext
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
/**
* Ctor.
* @param engineImportService engine imports
* @param variableService variable names
* @param configuration the configuration
*/
public StatementSpecMapContext(EngineImportService engineImportService, VariableService variableService, ConfigurationInformation configuration, SchedulingService schedulingService, String engineURI, PatternNodeFactory patternNodeFactory, NamedWindowService namedWindowService, ContextManagementService contextManagementService, ExprDeclaredService exprDeclaredService)
{
this.engineImportService = engineImportService;
this.variableService = variableService;
this.configuration = configuration;
this.variableNames = new HashSet<String>();
this.schedulingService = schedulingService;
this.engineURI = engineURI;
this.patternNodeFactory = patternNodeFactory;
this.namedWindowService = namedWindowService;
this.contextManagementService = contextManagementService;
this.exprDeclaredService = exprDeclaredService;
}
示例6: map
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
/**
* Maps the SODA object model to a statement specification.
* @param sodaStatement is the object model to map
* @param engineImportService for resolving imports such as plug-in aggregations
* @param variableService provides variable values
* @param configuration supplies config values
* @return statement specification, and internal representation of a statement
*/
public static StatementSpecRaw map(EPStatementObjectModel sodaStatement, EngineImportService engineImportService, VariableService variableService, ConfigurationInformation configuration, SchedulingService schedulingService, String engineURI, PatternNodeFactory patternNodeFactory, NamedWindowService namedWindowService, ContextManagementService contextManagementService, ExprDeclaredService exprDeclaredService)
{
StatementSpecMapContext mapContext = new StatementSpecMapContext(engineImportService, variableService, configuration, schedulingService, engineURI, patternNodeFactory, namedWindowService, contextManagementService, exprDeclaredService);
StatementSpecRaw raw = map(sodaStatement, mapContext);
if (mapContext.isHasVariables())
{
raw.setHasVariables(true);
}
raw.setReferencedVariables(mapContext.getVariableNames());
return raw;
}
示例7: getExprDeclaredService
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public ExprDeclaredService getExprDeclaredService() {
return exprDeclaredService;
}
示例8: getExprDeclaredService
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public ExprDeclaredService getExprDeclaredService() {
return stmtEngineServices.getExprDeclaredService();
}
示例9: EPLTreeWalker
import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
/**
* Ctor.
* @param engineImportService is required to resolve lib-calls into static methods or configured aggregation functions
* @param variableService for variable access
* @param input is the tree nodes to walk
* @param defaultStreamSelector - the configuration for which insert or remove streams (or both) to produce
* @param engineURI engine URI
* @param configurationInformation configuration info
*/
public EPLTreeWalker(TreeNodeStream input,
CommonTokenStream tokenStream,
EngineImportService engineImportService,
VariableService variableService,
SchedulingService schedulingService,
SelectClauseStreamSelectorEnum defaultStreamSelector,
String engineURI,
ConfigurationInformation configurationInformation,
PatternNodeFactory patternNodeFactory,
ContextManagementService contextManagementService,
List<String> scriptBodies,
ExprDeclaredService exprDeclaredService)
{
super(input);
this.tokenStream = tokenStream;
this.engineImportService = engineImportService;
this.variableService = variableService;
this.defaultStreamSelector = defaultStreamSelector;
this.timeProvider = schedulingService;
this.patternNodeFactory = patternNodeFactory;
this.exprEvaluatorContext = new ExprEvaluatorContextTimeOnly(timeProvider);
this.engineURI = engineURI;
this.configurationInformation = configurationInformation;
this.schedulingService = schedulingService;
this.contextManagementService = contextManagementService;
this.scriptBodies = scriptBodies;
this.exprDeclaredService = exprDeclaredService;
if (defaultStreamSelector == null)
{
throw new IllegalArgumentException("Default stream selector is null");
}
statementSpec = new StatementSpecRaw(defaultStreamSelector);
statementSpecStack = new Stack<StatementSpecRaw>();
astExprNodeMapStack = new Stack<Map<Tree, ExprNode>>();
// statement-global items
expressionDeclarations = new ExpressionDeclDesc();
statementSpec.setExpressionDeclDesc(expressionDeclarations);
scriptExpressions = new ArrayList<ExpressionScriptProvided>(1);
statementSpec.setScriptExpressions(scriptExpressions);
}