com.espertech.esper.epl.expression
Class ExprAggMultiFunctionSortedMinMaxByNode
java.lang.Object
com.espertech.esper.epl.expression.ExprNodeBase
com.espertech.esper.epl.expression.ExprAggregateNodeBase
com.espertech.esper.epl.expression.ExprAggMultiFunctionSortedMinMaxByNode
- All Implemented Interfaces:
- ExprAggregateNode, ExprEvaluator, ExprEvaluatorEnumeration, ExprNode, ExprValidator, MetaDefItem, java.io.Serializable
public class ExprAggMultiFunctionSortedMinMaxByNode
- extends ExprAggregateNodeBase
- implements ExprEvaluatorEnumeration
- See Also:
- Serialized Form
Methods inherited from class com.espertech.esper.epl.expression.ExprAggregateNodeBase |
equalsNode, evaluate, getExprEvaluator, getFactory, getPrecedence, getType, isConstantResult, isDistinct, setAggregationResultFuture, validate, validateFilter, validateNumericChildAllowFilter |
Methods inherited from class com.espertech.esper.epl.expression.ExprNodeBase |
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprAggMultiFunctionSortedMinMaxByNode
public ExprAggMultiFunctionSortedMinMaxByNode(boolean max,
boolean ever,
boolean sortedwin)
- Ctor.
validateAggregationChild
public AggregationMethodFactory validateAggregationChild(ExprValidationContext validationContext)
throws ExprValidationException
- Description copied from class:
ExprAggregateNodeBase
- Gives the aggregation node a chance to validate the sub-expression types.
- Specified by:
validateAggregationChild
in class ExprAggregateNodeBase
- Parameters:
validationContext
- validation information
- Returns:
- aggregation function factory to use
- Throws:
ExprValidationException
- when expression validation failed
getAggregationFunctionName
public java.lang.String getAggregationFunctionName()
- Description copied from class:
ExprAggregateNodeBase
- Returns the aggregation function name for representation in a generate expression string.
- Specified by:
getAggregationFunctionName
in class ExprAggregateNodeBase
- Returns:
- aggregation function name
toPrecedenceFreeEPL
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
- Overrides:
toPrecedenceFreeEPL
in class ExprAggregateNodeBase
evaluateGetROCollectionEvents
public java.util.Collection<EventBean> evaluateGetROCollectionEvents(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
- Specified by:
evaluateGetROCollectionEvents
in interface ExprEvaluatorEnumeration
evaluateGetROCollectionScalar
public java.util.Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
- Specified by:
evaluateGetROCollectionScalar
in interface ExprEvaluatorEnumeration
getEventTypeCollection
public EventType getEventTypeCollection(EventAdapterService eventAdapterService,
java.lang.String statementId)
- Specified by:
getEventTypeCollection
in interface ExprEvaluatorEnumeration
getComponentTypeCollection
public java.lang.Class getComponentTypeCollection()
throws ExprValidationException
- Specified by:
getComponentTypeCollection
in interface ExprEvaluatorEnumeration
- Throws:
ExprValidationException
getEventTypeSingle
public EventType getEventTypeSingle(EventAdapterService eventAdapterService,
java.lang.String statementId)
throws ExprValidationException
- Specified by:
getEventTypeSingle
in interface ExprEvaluatorEnumeration
- Throws:
ExprValidationException
evaluateGetEventBean
public EventBean evaluateGetEventBean(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
- Specified by:
evaluateGetEventBean
in interface ExprEvaluatorEnumeration
isMax
public boolean isMax()
isSortedwin
public boolean isSortedwin()
equalsNodeAggregate
protected boolean equalsNodeAggregate(ExprAggregateNode node)
- Description copied from class:
ExprAggregateNodeBase
- Return true if a expression aggregate node semantically equals the current node, or false if not.
For use by the equalsNode implementation which compares the distinct flag.
- Specified by:
equalsNodeAggregate
in class ExprAggregateNodeBase
- Parameters:
node
- to compare to
- Returns:
- true if semantically equal, or false if not equals