Packageflare.query
Classpublic class AggregateExpression
InheritanceAggregateExpression Inheritance Expression
SubclassesAverage, Count, Distinct, Maximum, Minimum, Sum, Variance

Base class representing an aggregate query operator.



Public Properties
 PropertyDefined by
  input : Expression
The sub-expression to aggregate.
AggregateExpression
  numChildren : int
[read-only] The number of sub-expressions that are children of this expression.
AggregateExpression
Protected Properties
 PropertyDefined by
  _expr : Expression
The sub-expression to aggregate.
AggregateExpression
Public Methods
 MethodDefined by
  
Creates a new AggregateExpression.
AggregateExpression
  
aggregate(value:Object):void
Increments the aggregation computation to include the input value.
AggregateExpression
 Inherited
Creates a cloned copy of the expression.
Expression
 Inherited
eval(o:Object = null):*
Evaluates this expression with the given input object.
Expression
 Inherited
[static] Utility method that maps an input value into an Expression.
Expression
  
Returns the sub-expression at the given index.
AggregateExpression
 Inherited
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this expression.
Expression
  
reset():void
Resets the aggregation computation.
AggregateExpression
  
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
AggregateExpression
 Inherited
toString():String
Returns a string representation of the expression.
Expression
 Inherited
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all sub-expressions.
Expression
Property detail
_exprproperty
protected var _expr:Expression

The sub-expression to aggregate.

inputproperty 
input:Expression  [read-write]

The sub-expression to aggregate.

Implementation
    public function get input():Expression
    public function set input(value:Expression):void
numChildrenproperty 
numChildren:int  [read-only]

The number of sub-expressions that are children of this expression.

Implementation
    public function get numChildren():int
Constructor detail
AggregateExpression()constructor
public function AggregateExpression(input:*)

Creates a new AggregateExpression.

Parameters
input:* — the sub-expression to aggregate.
Method detail
aggregate()method
public function aggregate(value:Object):void

Increments the aggregation computation to include the input value.

Parameters
value:Object — a value to include within the aggregation.
getChildAt()method 
public override function getChildAt(idx:int):Expression

Returns the sub-expression at the given index.

Parameters
idx:int — the index of the child sub-expression

Returns
Expression — the requested sub-expression.
reset()method 
public function reset():void

Resets the aggregation computation.

setChildAt()method 
public override function setChildAt(idx:int, expr:Expression):Boolean

Set the sub-expression at the given index.

Parameters
idx:int — the index of the child sub-expression
 
expr:Expression — the sub-expression to set

Returns
Boolean — true if the the sub-expression was successfully set, false otherwise