public class AggregationServiceMatchRecognizeImpl extends 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.
|
Collection<EventBean> |
getCollectionOfEvents(int column,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context) |
Collection<Object> |
getCollectionScalar(int column,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context) |
EventBean |
getEventBean(int column,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context) |
Object |
getGroupKey(int agentInstanceId) |
Collection<Object> |
getGroupKeys(ExprEvaluatorContext exprEvaluatorContext) |
Object |
getValue(int column,
int agentInstanceId,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext exprEvaluatorContext)
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 Object getValue(int column, int agentInstanceId, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
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 ideventsPerStream
- events per streamisNewData
- new vs removed indicatorexprEvaluatorContext
- contextpublic Collection<EventBean> getCollectionOfEvents(int column, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
getCollectionOfEvents
in interface AggregationResultFuture
public Collection<Object> getCollectionScalar(int column, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
getCollectionScalar
in interface AggregationResultFuture
public EventBean getEventBean(int column, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
getEventBean
in interface AggregationResultFuture
public void clearResults()
AggregationServiceMatchRecognize
clearResults
in interface AggregationServiceMatchRecognize
public Object getGroupKey(int agentInstanceId)
getGroupKey
in interface AggregationResultFuture
public Collection<Object> getGroupKeys(ExprEvaluatorContext exprEvaluatorContext)
getGroupKeys
in interface AggregationResultFuture