com.espertech.esper.epl.agg.access
Class AggregationAccessorMinMaxByNonTable

java.lang.Object
  extended by com.espertech.esper.epl.agg.access.AggregationAccessorMinMaxByBase
      extended by com.espertech.esper.epl.agg.access.AggregationAccessorMinMaxByNonTable
All Implemented Interfaces:
AggregationAccessor

public class AggregationAccessorMinMaxByNonTable
extends AggregationAccessorMinMaxByBase

Represents the aggregation accessor that provides the result for the "maxBy" aggregation function.


Constructor Summary
AggregationAccessorMinMaxByNonTable(boolean max)
           
 
Method Summary
 java.lang.Object getValue(AggregationState state, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
          Return the aggregation state value either as a scalar value or any other object.
 
Methods inherited from class com.espertech.esper.epl.agg.access.AggregationAccessorMinMaxByBase
getEnumerableEvent, getEnumerableEvents, getEnumerableScalar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregationAccessorMinMaxByNonTable

public AggregationAccessorMinMaxByNonTable(boolean max)
Method Detail

getValue

public java.lang.Object getValue(AggregationState state,
                                 EventBean[] eventsPerStream,
                                 boolean isNewData,
                                 ExprEvaluatorContext context)
Description copied from interface: AggregationAccessor
Return the aggregation state value either as a scalar value or any other object.

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.

Parameters:
state - aggregation state, downcast as needed
eventsPerStream - events
isNewData - new-data indicator
context - eval context
Returns:
return value

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com