|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.agg.access.AggregationAccessorSortedTable
public class AggregationAccessorSortedTable
Represents the aggregation accessor that provides the result for the "maxBy" aggregation function.
Constructor Summary | |
---|---|
AggregationAccessorSortedTable(boolean max,
java.lang.Class componentType,
TableMetadata tableMetadata)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregationAccessorSortedTable(boolean max, java.lang.Class componentType, TableMetadata tableMetadata)
Method Detail |
---|
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 context
public 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 context
public 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 context
public 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
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |