本文整理汇总了Java中com.espertech.esper.core.service.StatementExtensionSvcContext类的典型用法代码示例。如果您正苦于以下问题:Java StatementExtensionSvcContext类的具体用法?Java StatementExtensionSvcContext怎么用?Java StatementExtensionSvcContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StatementExtensionSvcContext类属于com.espertech.esper.core.service包,在下文中一共展示了StatementExtensionSvcContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: allocateVariableState
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public void allocateVariableState(String variableName, int agentInstanceId, StatementExtensionSvcContext extensionServicesContext, boolean isRecoveringResilient) {
VariableMetaData metaData = variables.get(variableName);
if (metaData == null) {
throw new IllegalArgumentException("Failed to find variable '" + variableName + "'");
}
// Check current state - see if the variable exists in the state handler
Object initialState = metaData.getVariableStateFactory().getInitialState();
if (optionalStateHandler != null) {
Pair<Boolean, Object> priorValue = optionalStateHandler.getHasState(variableName, metaData.getVariableNumber(), agentInstanceId, metaData.getType(), metaData.getEventType(), extensionServicesContext, metaData.isConstant());
if (isRecoveringResilient) {
if (priorValue.getFirst()) {
initialState = priorValue.getSecond();
}
} else {
optionalStateHandler.setState(variableName, metaData.getVariableNumber(), agentInstanceId, initialState);
}
}
// create new holder for versions
long timestamp = timeProvider.getTime();
VersionedValueList<Object> valuePerVersion = new VersionedValueList<Object>(variableName, currentVersionNumber, initialState, timestamp, millisecondLifetimeOldVersions, readWriteLock.readLock(), HIGH_WATERMARK_VERSIONS, false);
Map<Integer, VariableReader> cps = variableVersionsPerCP.get(metaData.getVariableNumber());
VariableReader reader = new VariableReader(metaData, versionThreadLocal, valuePerVersion);
cps.put(agentInstanceId, reader);
}
示例2: FilterSpecCompilerArgs
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public FilterSpecCompilerArgs(LinkedHashMap<String, Pair<EventType, String>> taggedEventTypes, LinkedHashMap<String, Pair<EventType, String>> arrayEventTypes, ExprEvaluatorContext exprEvaluatorContext, String statementName, int statementId, StreamTypeService streamTypeService, EngineImportService engineImportService, TimeProvider timeProvider, VariableService variableService, TableService tableService, EventAdapterService eventAdapterService, FilterBooleanExpressionFactory filterBooleanExpressionFactory, Annotation[] annotations, ContextDescriptor contextDescriptor, ConfigurationInformation configurationInformation, StatementExtensionSvcContext statementExtensionSvcContext) {
this.taggedEventTypes = taggedEventTypes;
this.arrayEventTypes = arrayEventTypes;
this.exprEvaluatorContext = exprEvaluatorContext;
this.statementName = statementName;
this.statementId = statementId;
this.streamTypeService = streamTypeService;
this.engineImportService = engineImportService;
this.timeProvider = timeProvider;
this.variableService = variableService;
this.tableService = tableService;
this.eventAdapterService = eventAdapterService;
this.filterBooleanExpressionFactory = filterBooleanExpressionFactory;
this.annotations = annotations;
this.contextDescriptor = contextDescriptor;
this.configurationInformation = configurationInformation;
this.statementExtensionSvcContext = statementExtensionSvcContext;
}
示例3: SortedAggregationStateFactoryFactory
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public SortedAggregationStateFactoryFactory(EngineImportService engineImportService, StatementExtensionSvcContext statementExtensionSvcContext, ExprNode[] expressions, boolean[] sortDescending, boolean ever, int streamNum, ExprAggMultiFunctionSortedMinMaxByNode parent, ExprForge optionalFilter, boolean join) {
this.engineImportService = engineImportService;
this.statementExtensionSvcContext = statementExtensionSvcContext;
this.expressions = expressions;
this.sortDescending = sortDescending;
this.ever = ever;
this.streamNum = streamNum;
this.parent = parent;
this.optionalFilter = optionalFilter;
this.join = join;
}
示例4: buildNoStmtCtx
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public static FilterSpecCompiled buildNoStmtCtx(List<ExprNode> validatedFilterNodes,
EventType eventType,
String eventTypeName,
PropertyEvalSpec optionalPropertyEvalSpec,
LinkedHashMap<String, Pair<EventType, String>> taggedEventTypes,
LinkedHashMap<String, Pair<EventType, String>> arrayEventTypes,
StreamTypeService streamTypeService,
String optionalStreamName,
Collection<Integer> assignedTypeNumberStack,
ExprEvaluatorContext exprEvaluatorContext,
int statementId,
String statementName,
Annotation[] annotations,
ContextDescriptor contextDescriptor,
EngineImportService engineImportService,
EventAdapterService eventAdapterService,
FilterBooleanExpressionFactory filterBooleanExpressionFactory,
TimeProvider timeProvider,
VariableService variableService,
TableService tableService,
ConfigurationInformation configurationInformation,
NamedWindowMgmtService namedWindowMgmtService,
StatementExtensionSvcContext statementExtensionSvcContext) throws ExprValidationException {
FilterSpecCompilerArgs args = new FilterSpecCompilerArgs(taggedEventTypes, arrayEventTypes, exprEvaluatorContext, statementName, statementId, streamTypeService, engineImportService, timeProvider, variableService, tableService, eventAdapterService, filterBooleanExpressionFactory, annotations, contextDescriptor, configurationInformation, statementExtensionSvcContext);
List<FilterSpecParam>[] parameters = FilterSpecCompilerPlanner.planFilterParameters(validatedFilterNodes, args);
PropertyEvaluator optionalPropertyEvaluator = null;
if (optionalPropertyEvalSpec != null) {
optionalPropertyEvaluator = PropertyEvaluatorFactory.makeEvaluator(optionalPropertyEvalSpec, eventType, optionalStreamName, eventAdapterService, engineImportService, timeProvider, variableService, tableService, streamTypeService.getEngineURIQualifier(), statementId, statementName, annotations, assignedTypeNumberStack, configurationInformation, namedWindowMgmtService, statementExtensionSvcContext);
}
FilterSpecCompiled spec = new FilterSpecCompiled(eventType, eventTypeName, parameters, optionalPropertyEvaluator);
if (log.isDebugEnabled()) {
log.debug(".makeFilterSpec spec=" + spec);
}
return spec;
}
示例5: makeCount
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeCount(StatementExtensionSvcContext statementExtensionSvcContext, ExprCountNode exprCountNode, boolean ignoreNulls, Class countedValueType) {
return new AggregationMethodFactoryCount(exprCountNode, ignoreNulls, countedValueType);
}
示例6: makeSum
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeSum(StatementExtensionSvcContext statementExtensionSvcContext, ExprSumNode exprSumNode, Class childType) {
return new AggregationMethodFactorySum(exprSumNode, childType);
}
示例7: makeAvedev
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeAvedev(StatementExtensionSvcContext statementExtensionSvcContext, ExprAvedevNode exprAvedevNode, Class childType, ExprNode[] positionalParams) {
return new AggregationMethodFactoryAvedev(exprAvedevNode, childType, positionalParams);
}
示例8: makeAvg
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeAvg(StatementExtensionSvcContext statementExtensionSvcContext, ExprAvgNode exprAvgNode, Class childType, MathContext optionalMathContext) {
return new AggregationMethodFactoryAvg(exprAvgNode, childType, optionalMathContext);
}
示例9: makeCountEver
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeCountEver(StatementExtensionSvcContext statementExtensionSvcContext, ExprCountEverNode exprCountEverNode, boolean ignoreNulls) {
return new AggregationMethodFactoryCountEver(exprCountEverNode, ignoreNulls);
}
示例10: makeFirstLastEver
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeFirstLastEver(StatementExtensionSvcContext statementExtensionSvcContext, ExprFirstLastEverNode exprFirstLastEverNode, Class type) {
return new AggregationMethodFactoryFirstLastEver(exprFirstLastEverNode, type);
}
示例11: makeLeaving
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeLeaving(StatementExtensionSvcContext statementExtensionSvcContext, ExprLeavingAggNode exprLeavingAggNode) {
return new AggregationMethodFactoryLeaving(exprLeavingAggNode);
}
示例12: makeMedian
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeMedian(StatementExtensionSvcContext statementExtensionSvcContext, ExprMedianNode exprMedianNode, Class childType) {
return new AggregationMethodFactoryMedian(exprMedianNode, childType);
}
示例13: makeMinMax
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeMinMax(StatementExtensionSvcContext statementExtensionSvcContext, ExprMinMaxAggrNode exprMinMaxAggrNode, Class type, boolean hasDataWindows) {
return new AggregationMethodFactoryMinMax(exprMinMaxAggrNode, type, hasDataWindows);
}
示例14: makeNth
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makeNth(StatementExtensionSvcContext statementExtensionSvcContext, ExprNthAggNode exprNthAggNode, Class type, int size) {
return new AggregationMethodFactoryNth(exprNthAggNode, type, size);
}
示例15: makePlugInMethod
import com.espertech.esper.core.service.StatementExtensionSvcContext; //导入依赖的package包/类
public AggregationMethodFactory makePlugInMethod(StatementExtensionSvcContext statementExtensionSvcContext, ExprPlugInAggNode expr, AggregationFunctionFactory factory, Class childType) {
return new AggregationMethodFactoryPlugIn(expr, factory, childType);
}