public class AggregationServiceMatchRecognizeImpl extends java.lang.Object implements AggregationServiceMatchRecognize
Constructor and Description |
---|
AggregationServiceMatchRecognizeImpl(ExprEvaluator[][] evaluatorsEachStream,
AggregationMethod[][] aggregatorsEachStream,
AggregationMethod[] aggregatorsAll) |
Modifier and Type | Method and Description |
---|---|
void |
applyEnter(EventBean[] eventsPerStream,
int streamId,
ExprEvaluatorContext exprEvaluatorContext)
Enter a single event row consisting of one or more events per stream (each stream representing a variable).
|
void |
clearResults()
Clear current aggregation state.
|
java.util.Collection<EventBean> |
getCollection(int column,
ExprEvaluatorContext context) |
EventBean |
getEventBean(int column,
ExprEvaluatorContext context) |
java.lang.Object |
getGroupKey(int agentInstanceId) |
java.util.Collection<java.lang.Object> |
getGroupKeys(ExprEvaluatorContext exprEvaluatorContext) |
java.lang.Object |
getValue(int column,
int agentInstanceId)
Returns current aggregation state, for use by expression node representing an aggregation function.
|
public AggregationServiceMatchRecognizeImpl(ExprEvaluator[][] evaluatorsEachStream, AggregationMethod[][] aggregatorsEachStream, AggregationMethod[] aggregatorsAll)
public void applyEnter(EventBean[] eventsPerStream, int streamId, ExprEvaluatorContext exprEvaluatorContext)
AggregationServiceMatchRecognize
applyEnter
in interface AggregationServiceMatchRecognize
eventsPerStream
- events per streamstreamId
- variable number that is the baseexprEvaluatorContext
- context for expression evaluatiompublic java.lang.Object getValue(int column, int agentInstanceId)
AggregationResultFuture
getValue
in interface AggregationResultFuture
column
- is assigned to the aggregation expression node and passed as an column (index) into a rowagentInstanceId
- the context partition idpublic java.util.Collection<EventBean> getCollection(int column, ExprEvaluatorContext context)
getCollection
in interface AggregationResultFuture
public EventBean getEventBean(int column, ExprEvaluatorContext context)
getEventBean
in interface AggregationResultFuture
public void clearResults()
AggregationServiceMatchRecognize
clearResults
in interface AggregationServiceMatchRecognize
public java.lang.Object getGroupKey(int agentInstanceId)
getGroupKey
in interface AggregationResultFuture
public java.util.Collection<java.lang.Object> getGroupKeys(ExprEvaluatorContext exprEvaluatorContext)
getGroupKeys
in interface AggregationResultFuture