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