| Package | flare.query |
| Class | public class AggregateExpression |
| Inheritance | AggregateExpression Expression |
| Subclasses | Average, Count, Distinct, Maximum, Minimum, Sum, Variance, WeightedAverage |
| Property | Defined 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 | ||
| Property | Defined by | ||
|---|---|---|---|
| _expr : Expression
The sub-expression to aggregate.
| AggregateExpression | ||
| Method | Defined by | ||
|---|---|---|---|
|
AggregateExpression(input:*)
Creates a new AggregateExpression.
| AggregateExpression | ||
|
aggregate(value:Object):void
Increments the aggregation computation to include the input value.
| AggregateExpression | ||
![]() |
Creates a cloned copy of the expression.
| Expression | |
![]() |
eval(o:Object = null):*
Evaluates this expression with the given input object.
| Expression | |
![]() |
expr(o:*):Expression
[static]
Utility method that maps an input value into an Expression.
| Expression | |
|
getChildAt(idx:int):Expression
Returns the sub-expression at the given index.
| AggregateExpression | ||
![]() |
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 | ||
![]() |
toString():String
Returns a string representation of the expression.
| Expression | |
![]() |
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all
sub-expressions.
| Expression | |
| _expr | property |
protected var _expr:ExpressionThe sub-expression to aggregate.
| input | property |
input:Expression [read-write]The sub-expression to aggregate.
Implementation public function get input():Expression
public function set input(value:Expression):void
| numChildren | property |
numChildren:int [read-only]The number of sub-expressions that are children of this expression.
Implementation public function get numChildren():int
| AggregateExpression | () | constructor |
public function AggregateExpression(input:*)Creates a new AggregateExpression.
Parametersinput:* — the sub-expression to aggregate.
|
| aggregate | () | method |
public function aggregate(value:Object):voidIncrements the aggregation computation to include the input value.
Parametersvalue:Object — a value to include within the aggregation.
|
| getChildAt | () | method |
public override function getChildAt(idx:int):ExpressionReturns the sub-expression at the given index.
Parametersidx:int — the index of the child sub-expression
|
Expression —
the requested sub-expression.
|
| reset | () | method |
public function reset():voidResets the aggregation computation.
| setChildAt | () | method |
public override function setChildAt(idx:int, expr:Expression):BooleanSet the sub-expression at the given index.
Parametersidx:int — the index of the child sub-expression
|
|
expr:Expression — the sub-expression to set
|
Boolean — true if the the sub-expression was successfully set,
false otherwise
|