public class AggregationAccessorFirstLastIndexNoEval extends java.lang.Object implements AggregationAccessor
Constructor and Description |
---|
AggregationAccessorFirstLastIndexNoEval(ExprEvaluator indexNode,
int constant,
boolean first) |
Modifier and Type | Method and Description |
---|---|
EventBean |
getEnumerableEvent(AggregationState state,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext exprEvaluatorContext)
Return the aggregation state value consisting of a single event.
|
java.util.Collection<EventBean> |
getEnumerableEvents(AggregationState state,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext exprEvaluatorContext)
Return the aggregation state value consisting of a collection of events.
|
java.util.Collection<java.lang.Object> |
getEnumerableScalar(AggregationState state,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext exprEvaluatorContext)
Return the aggregation state value consisting of a collection of scalar values.
|
java.lang.Object |
getValue(AggregationState state,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext exprEvaluatorContext)
Return the aggregation state value either as a scalar value or any other object.
|
public AggregationAccessorFirstLastIndexNoEval(ExprEvaluator indexNode, int constant, boolean first)
public java.lang.Object getValue(AggregationState state, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
AggregationAccessor
For enumeration over scalar values or objects return an array or collection of scalar or object values.
Use the #getEnumerableEvents method to return a collection of events.
Use the #getEnumerableEvent to return a single events.
getValue
in interface AggregationAccessor
state
- aggregation state, downcast as neededeventsPerStream
- eventsisNewData
- new-data indicatorexprEvaluatorContext
- eval contextpublic java.util.Collection<EventBean> getEnumerableEvents(AggregationState state, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
AggregationAccessor
getEnumerableEvents
in interface AggregationAccessor
state
- aggregation state, downcast as neededeventsPerStream
- eventsisNewData
- new-data indicatorexprEvaluatorContext
- eval contextpublic java.util.Collection<java.lang.Object> getEnumerableScalar(AggregationState state, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
AggregationAccessor
getEnumerableScalar
in interface AggregationAccessor
state
- aggregation state, downcast as neededeventsPerStream
- eventsisNewData
- new-data indicatorexprEvaluatorContext
- eval contextpublic EventBean getEnumerableEvent(AggregationState state, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
AggregationAccessor
getEnumerableEvent
in interface AggregationAccessor
state
- aggregation state, downcast as neededeventsPerStream
- eventsisNewData
- new-data indicatorexprEvaluatorContext
- eval context