com.espertech.esper.epl.expression
Class ExprAggMultiFunctionLinearAccessNode

java.lang.Object
  extended by com.espertech.esper.epl.expression.ExprNodeBase
      extended by com.espertech.esper.epl.expression.ExprAggregateNodeBase
          extended by com.espertech.esper.epl.expression.ExprAggMultiFunctionLinearAccessNode
All Implemented Interfaces:
ExprAggregateNode, ExprEvaluator, ExprEvaluatorEnumeration, ExprNode, ExprValidator, MetaDefItem, java.io.Serializable

public class ExprAggMultiFunctionLinearAccessNode
extends ExprAggregateNodeBase
implements ExprEvaluatorEnumeration

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.espertech.esper.epl.expression.ExprAggregateNodeBase
aggregationResultFuture, column, isDistinct
 
Constructor Summary
ExprAggMultiFunctionLinearAccessNode(AggregationStateType stateType, boolean wildcard, java.lang.String streamWildcard)
          Ctor.
 
Method Summary
protected  boolean equalsNodeAggregate(ExprAggregateNode node)
          Return true if a expression aggregate node semantically equals the current node, or false if not.
 EventBean evaluateGetEventBean(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
           
 java.util.Collection<EventBean> evaluateGetROCollectionEvents(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
           
 java.util.Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
           
protected  java.lang.String getAggregationFunctionName()
          Returns the aggregation function name for representation in a generate expression string.
 java.lang.Class getComponentTypeCollection()
           
 EventType getEventTypeCollection(EventAdapterService eventAdapterService)
           
 EventType getEventTypeSingle(EventAdapterService eventAdapterService, java.lang.String statementId)
           
protected static boolean getIstreamOnly(StreamTypeService streamTypeService, int streamNum)
           
 AggregationStateType getStateType()
           
 java.lang.String getStreamWildcard()
           
 boolean isWildcard()
           
 java.lang.String toExpressionString()
          Renders the aggregation function expression.
 AggregationMethodFactory validateAggregationChild(ExprValidationContext validationContext)
          Gives the aggregation node a chance to validate the sub-expression types.
 
Methods inherited from class com.espertech.esper.epl.expression.ExprAggregateNodeBase
equalsNode, evaluate, getEventType, getExprEvaluator, getFactory, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.epl.expression.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
 

Constructor Detail

ExprAggMultiFunctionLinearAccessNode

public ExprAggMultiFunctionLinearAccessNode(AggregationStateType stateType,
                                            boolean wildcard,
                                            java.lang.String streamWildcard)
Ctor.

Method Detail

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

getIstreamOnly

protected static boolean getIstreamOnly(StreamTypeService streamTypeService,
                                        int streamNum)

getAggregationFunctionName

protected 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

toExpressionString

public java.lang.String toExpressionString()
Description copied from class: ExprAggregateNodeBase
Renders the aggregation function expression.

Specified by:
toExpressionString in interface ExprNode
Overrides:
toExpressionString in class ExprAggregateNodeBase
Returns:
expression string is the textual rendering of the aggregation function and it's sub-expression

getStateType

public AggregationStateType getStateType()

isWildcard

public boolean isWildcard()

getStreamWildcard

public java.lang.String getStreamWildcard()

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)
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

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

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