本文整理匯總了Java中com.espertech.esper.event.vaevent.ValueAddEventProcessor類的典型用法代碼示例。如果您正苦於以下問題:Java ValueAddEventProcessor類的具體用法?Java ValueAddEventProcessor怎麽用?Java ValueAddEventProcessor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ValueAddEventProcessor類屬於com.espertech.esper.event.vaevent包,在下文中一共展示了ValueAddEventProcessor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addProcessor
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public NamedWindowProcessor addProcessor(String name, String contextName, EventType eventType, StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor, String eplExpression, String statementName, boolean isPrioritized,
boolean isEnableSubqueryIndexShare, boolean isBatchingDataWindow,
boolean isVirtualDataWindow,
Set<String> optionalUniqueKeyProps, String eventTypeAsName,
StatementContext statementContextCreateWindow,
NamedWindowDispatchService namedWindowDispatchService) throws ViewProcessingException {
if (processors.containsKey(name)) {
throw new ViewProcessingException("A named window by name '" + name + "' has already been created");
}
NamedWindowProcessor processor = namedWindowDispatchService.createProcessor(name, this, namedWindowDispatchService, contextName, eventType, statementResultService, revisionProcessor, eplExpression, statementName, isPrioritized, isEnableSubqueryIndexShare, enableQueryPlanLog, metricReportingService, isBatchingDataWindow, isVirtualDataWindow, optionalUniqueKeyProps, eventTypeAsName, statementContextCreateWindow);
processors.put(name, processor);
if (!observers.isEmpty()) {
NamedWindowLifecycleEvent theEvent = new NamedWindowLifecycleEvent(name, processor, NamedWindowLifecycleEvent.LifecycleEventType.CREATE);
for (NamedWindowLifecycleObserver observer : observers) {
observer.observe(theEvent);
}
}
return processor;
}
示例2: NamedWindowProcessor
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
/**
* Ctor.
* @param namedWindowService service for dispatching results
* @param eventType the type of event held by the named window
* @param statementResultService for coordinating on whether insert and remove stream events should be posted
* @param revisionProcessor for revision processing
* @param eplExpression epl expression
* @param statementName statement name
* @param isPrioritized if the engine is running with prioritized execution
*/
public NamedWindowProcessor(String namedWindowName, NamedWindowService namedWindowService, String contextName, boolean singleInstanceContext, EventType eventType, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor, String eplExpression, String statementName, boolean isPrioritized, boolean isEnableSubqueryIndexShare, boolean enableQueryPlanLog, MetricReportingService metricReportingService, boolean isBatchingDataWindow, boolean isVirtualDataWindow, StatementMetricHandle statementMetricHandle, Set<String> optionalUniqueKeyProps)
{
this.namedWindowName = namedWindowName;
this.contextName = contextName;
this.singleInstanceContext = singleInstanceContext;
this.eventType = eventType;
this.eplExpression = eplExpression;
this.statementName = statementName;
this.isEnableSubqueryIndexShare = isEnableSubqueryIndexShare;
this.isVirtualDataWindow = isVirtualDataWindow;
this.statementMetricHandle = statementMetricHandle;
this.optionalUniqueKeyProps = optionalUniqueKeyProps;
rootView = new NamedWindowRootView(revisionProcessor, enableQueryPlanLog, metricReportingService, eventType, isBatchingDataWindow, isEnableSubqueryIndexShare, optionalUniqueKeyProps);
tailView = new NamedWindowTailView(eventType, namedWindowService, statementResultService, revisionProcessor, isPrioritized, isBatchingDataWindow);
}
示例3: addProcessor
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public NamedWindowProcessor addProcessor(String name, String contextName, boolean singleInstanceContext, EventType eventType, StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor, String eplExpression, String statementName, boolean isPrioritized,
boolean isEnableSubqueryIndexShare, boolean isBatchingDataWindow,
boolean isVirtualDataWindow, StatementMetricHandle statementMetricHandle,
Set<String> optionalUniqueKeyProps) throws ViewProcessingException
{
if (processors.containsKey(name))
{
throw new ViewProcessingException("A named window by name '" + name + "' has already been created");
}
NamedWindowProcessor processor = new NamedWindowProcessor(name, this, contextName, singleInstanceContext, eventType, statementResultService, revisionProcessor, eplExpression, statementName, isPrioritized, isEnableSubqueryIndexShare, enableQueryPlanLog, metricReportingService, isBatchingDataWindow, isVirtualDataWindow, statementMetricHandle, optionalUniqueKeyProps);
processors.put(name, processor);
if (!observers.isEmpty())
{
NamedWindowLifecycleEvent theEvent = new NamedWindowLifecycleEvent(name, processor, NamedWindowLifecycleEvent.LifecycleEventType.CREATE);
for (NamedWindowLifecycleObserver observer : observers)
{
observer.observe(theEvent);
}
}
return processor;
}
示例4: NamedWindowRootView
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public NamedWindowRootView(ValueAddEventProcessor revisionProcessor, boolean queryPlanLogging, MetricReportingService metricReportingService, EventType eventType, boolean childBatching, boolean isEnableIndexShare, Set<String> optionalUniqueKeyProps) {
this.revisionProcessor = revisionProcessor;
this.queryPlanLogging = queryPlanLogging;
this.eventType = eventType;
this.isChildBatching = childBatching;
this.isEnableIndexShare = isEnableIndexShare;
this.optionalUniqueKeyProps = optionalUniqueKeyProps;
}
示例5: NamedWindowProcessor
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public NamedWindowProcessor(String namedWindowName, NamedWindowMgmtService namedWindowMgmtService, NamedWindowDispatchService namedWindowDispatchService, String contextName, EventType eventType, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor, String eplExpression, String statementName, boolean isPrioritized, boolean isEnableSubqueryIndexShare, boolean enableQueryPlanLog, MetricReportingService metricReportingService, boolean isBatchingDataWindow, boolean isVirtualDataWindow, Set<String> optionalUniqueKeyProps, String eventTypeAsName, StatementContext statementContextCreateWindow) {
this.namedWindowName = namedWindowName;
this.contextName = contextName;
this.eventType = eventType;
this.eplExpression = eplExpression;
this.statementName = statementName;
this.isEnableSubqueryIndexShare = isEnableSubqueryIndexShare;
this.isVirtualDataWindow = isVirtualDataWindow;
this.optionalUniqueKeyProps = optionalUniqueKeyProps;
this.eventTypeAsName = eventTypeAsName;
this.statementContextCreateWindow = statementContextCreateWindow;
rootView = new NamedWindowRootView(revisionProcessor, enableQueryPlanLog, metricReportingService, eventType, isBatchingDataWindow, isEnableSubqueryIndexShare, optionalUniqueKeyProps);
tailView = namedWindowDispatchService.createTailView(eventType, namedWindowMgmtService, namedWindowDispatchService, statementResultService, revisionProcessor, isPrioritized, isBatchingDataWindow, contextName, statementContextCreateWindow.getTimeSourceService(), statementContextCreateWindow.getConfigSnapshot().getEngineDefaults().getThreading());
}
示例6: addProcessor
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public NamedWindowProcessor addProcessor(String name,
String contextName,
EventType eventType,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor,
String eplExpression,
String statementName,
boolean isPrioritized,
boolean isEnableSubqueryIndexShare,
boolean isBatchingDataWindow,
boolean isVirtualDataWindow,
Set<String> optionalUniqueKeyProps,
String eventTypeAsName,
StatementContext statementContextCreateWindow,
NamedWindowDispatchService namedWindowDispatchService) throws ViewProcessingException;
示例7: NamedWindowTailView
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public NamedWindowTailView(EventType eventType, NamedWindowMgmtService namedWindowMgmtService, NamedWindowDispatchService namedWindowDispatchService, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor, boolean prioritized, boolean parentBatchWindow, TimeSourceService timeSourceService, ConfigurationEngineDefaults.Threading threadingConfig) {
this.eventType = eventType;
this.namedWindowMgmtService = namedWindowMgmtService;
this.namedWindowDispatchService = namedWindowDispatchService;
this.statementResultService = statementResultService;
this.revisionProcessor = revisionProcessor;
this.isPrioritized = prioritized;
this.isParentBatchWindow = parentBatchWindow;
this.consumersNonContext = NamedWindowUtil.createConsumerMap(isPrioritized);
this.threadingConfig = threadingConfig;
this.timeSourceService = timeSourceService;
}
示例8: processFirstColCodegen
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
protected CodegenExpression processFirstColCodegen(Class evaluationType, CodegenExpression expression, CodegenMember memberResultEventType, CodegenMember memberEventAdapterService, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {
CodegenMember processor = codegenClassScope.makeAddMember(ValueAddEventProcessor.class, vaeProcessor);
CodegenMethodNode method = codegenMethodScope.makeChild(EventBean.class, this.getClass(), codegenClassScope).addParam(evaluationType, "result").getBlock()
.declareVar(EventBean.class, "wrappedEvent", exprDotMethod(member(memberEventAdapterService.getMemberId()), "adapterForBean", ref("result")))
.declareVar(EventBean.class, "variant", exprDotMethod(member(processor.getMemberId()), "getValueAddEventBean", ref("wrappedEvent")))
.methodReturn(exprDotMethod(member(memberEventAdapterService.getMemberId()), "adapterForTypedWrapper", ref("variant"), staticMethod(Collections.class, "emptyMap"), member(memberResultEventType.getMemberId())));
return localMethodBuild(method).pass(expression).call();
}
示例9: processFirstColCodegen
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
protected CodegenExpression processFirstColCodegen(Class evaluationType, CodegenExpression expression, CodegenMember memberResultEventType, CodegenMember memberEventAdapterService, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {
CodegenMember memberProcessor = codegenClassScope.makeAddMember(ValueAddEventProcessor.class, vaeProcessor);
CodegenMember memberType = codegenClassScope.makeAddMember(EventType.class, vaeInnerEventType);
CodegenMember memberFunc = codegenClassScope.makeAddMember(TriFunction.class, func);
CodegenExpression wrappedEvent = exprDotMethod(CodegenExpressionBuilder.member(memberFunc.getMemberId()), "apply", CodegenExpressionBuilder.member(memberEventAdapterService.getMemberId()), expression, CodegenExpressionBuilder.member(memberResultEventType.getMemberId()));
CodegenExpression adapter = exprDotMethod(CodegenExpressionBuilder.member(memberEventAdapterService.getMemberId()), "adapterForTypedWrapper", wrappedEvent, staticMethod(Collections.class, "emptyMap"), CodegenExpressionBuilder.member(memberType.getMemberId()));
return exprDotMethod(CodegenExpressionBuilder.member(memberProcessor.getMemberId()), "getValueAddEventBean", adapter);
}
示例10: selectExprInsertWildcardSSWrapRevision
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
/**
* NOTE: Code-generation-invoked method, method name and parameter order matters
* @param eventsPerStream events
* @param numEvaluators num evals
* @param props props
* @param vaeProcessor processor
* @return bean
*/
public static EventBean selectExprInsertWildcardSSWrapRevision(EventBean[] eventsPerStream, int numEvaluators, Map<String, Object> props, ValueAddEventProcessor vaeProcessor) {
DecoratingEventBean wrapper = (DecoratingEventBean) eventsPerStream[0];
if (wrapper != null) {
Map<String, Object> map = wrapper.getDecoratingProperties();
if ((numEvaluators == 0) && (!map.isEmpty())) {
// no action
} else {
props.putAll(map);
}
}
EventBean theEvent = eventsPerStream[0];
return vaeProcessor.getValueAddEventBean(theEvent);
}
示例11: processCodegen
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public CodegenMethodNode processCodegen(CodegenMember memberResultEventType, CodegenMember memberEventAdapterService, CodegenMethodScope codegenMethodScope, SelectExprProcessorCodegenSymbol selectSymbol, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
CodegenMethodNode methodNode = codegenMethodScope.makeChild(EventBean.class, this.getClass(), codegenClassScope);
CodegenExpressionRef refEPS = exprSymbol.getAddEPS(methodNode);
CodegenMember vae = codegenClassScope.makeAddMember(ValueAddEventProcessor.class, vaeProcessor);
methodNode.getBlock().methodReturn(exprDotMethod(member(vae.getMemberId()), "getValueAddEventBean", arrayAtIndex(refEPS, constant(0))));
return methodNode;
}
示例12: processCodegen
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public CodegenMethodNode processCodegen(CodegenMember memberResultEventType, CodegenMember memberEventAdapterService, CodegenMethodScope codegenMethodScope, SelectExprProcessorCodegenSymbol selectSymbol, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
CodegenMember processor = codegenClassScope.makeAddMember(ValueAddEventProcessor.class, vaeProcessor);
CodegenMethodNode methodNode = codegenMethodScope.makeChild(EventBean.class, this.getClass(), codegenClassScope);
CodegenMethodNode jw = joinWildcardProcessorForge.processCodegen(memberResultEventType, memberEventAdapterService, methodNode, selectSymbol, exprSymbol, codegenClassScope);
methodNode.getBlock().methodReturn(exprDotMethod(CodegenExpressionBuilder.member(processor.getMemberId()), "getValueAddEventBean", localMethod(jw)));
return methodNode;
}
示例13: processSpecificCodegen
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
protected CodegenExpression processSpecificCodegen(CodegenMember memberResultEventType, CodegenMember memberEventAdapterService, CodegenExpression props, CodegenMethodNode methodNode, SelectExprProcessorCodegenSymbol selectEnv, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {
CodegenMember processor = codegenClassScope.makeAddMember(ValueAddEventProcessor.class, vaeProcessor);
CodegenMember innerType = codegenClassScope.makeAddMember(EventType.class, wrappingEventType);
CodegenExpressionRef refEPS = exprSymbol.getAddEPS(methodNode);
CodegenExpression wrapped = exprDotMethod(member(memberEventAdapterService.getMemberId()), "adapterForTypedWrapper", arrayAtIndex(refEPS, constant(0)), ref("props"), member(innerType.getMemberId()));
return exprDotMethod(member(processor.getMemberId()), "getValueAddEventBean", wrapped);
}
示例14: isVariantStreamExists
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
public boolean isVariantStreamExists(String name) {
ValueAddEventProcessor processor = valueAddEventService.getValueAddProcessor(name);
if (processor == null) {
return false;
}
return processor.getValueAddEventType() instanceof VariantEventType;
}
示例15: addProcessor
import com.espertech.esper.event.vaevent.ValueAddEventProcessor; //導入依賴的package包/類
/**
* Create a new named window.
* @param name window name
* @param eventType the event type of the window
* @param statementResultService for coordinating on whether insert and remove stream events should be posted
* @param revisionProcessor handles update events
* @param eplExpression is the expression
* @param statementName the name of the statement
* @param isPrioritized if the engine is running with prioritized execution
* @return processor for the named window
* @throws ViewProcessingException if the named window already exists
*/
public NamedWindowProcessor addProcessor(String name,
String contextName,
boolean singleInstanceContext,
EventType eventType,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor,
String eplExpression,
String statementName,
boolean isPrioritized,
boolean isEnableSubqueryIndexShare,
boolean isBatchingDataWindow,
boolean isVirtualDataWindow,
StatementMetricHandle statementMetricHandle,
Set<String> optionalUniqueKeyProps) throws ViewProcessingException;