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


Java ExprDeclaredService类代码示例

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

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:14,代码来源:StatementSpecMapContext.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:38,代码来源:EPLTreeWalkerListener.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:30,代码来源:StatementContextEngineServices.java

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

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

示例7: getExprDeclaredService

import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public ExprDeclaredService getExprDeclaredService() {
    return exprDeclaredService;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:StatementSpecMapContext.java

示例8: getExprDeclaredService

import com.espertech.esper.epl.declexpr.ExprDeclaredService; //导入依赖的package包/类
public ExprDeclaredService getExprDeclaredService() {
    return stmtEngineServices.getExprDeclaredService();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:StatementContext.java

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


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