套件 | mx.olap.aggregators |
類別 | public class AverageAggregator |
繼承 | AverageAggregator Object |
實作 | IOLAPCustomAggregator |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
OLAPMeasure.aggregator
property
to "AVG"
.
相關 API 元素
方法 | 定義自 | ||
---|---|---|---|
Flex calls this method to start the computation of an aggregation value. | AverageAggregator | ||
Flex calls this method to end the computation of the aggregation value. | AverageAggregator | ||
Flex calls this method when a new value needs to be added to the aggregation. | AverageAggregator | ||
Flex calls this method to start aggregation of aggregated values. | AverageAggregator | ||
Flex calls this method to end the computation. | AverageAggregator | ||
Flex calls this method when a new aggregated value needs to be added to the aggregation. | AverageAggregator | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
computeBegin | () | 方法 |
public function computeBegin(dataField:String):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to start the computation of an aggregation value.
參數
dataField:String — The name of the OLAPMeasure.dataField property
for the measure to be aggregated.
|
Object — An Object initialized for the aggregation.
Use this Object to hold any information necessary to perform the aggregation.
You pass this Object to subsequent calls to the computeLoop()
and computeEnd() methods.
|
computeEnd | () | 方法 |
public function computeEnd(data:Object, dataField:String):Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to end the computation of the aggregation value.
參數
data:Object — The Object returned by the call to the computeLoop() method.
Use this Object to hold information necessary to perform the aggregation.
| |
dataField:String — The name of the OLAPMeasure.dataField property
for the measure to be aggregated.
|
Number — The aggregated value.
|
computeLoop | () | 方法 |
public function computeLoop(data:Object, dataField:String, rowData:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method when a new value needs to be added to the aggregation.
參數
data:Object — The Object returned by the call to the computeBegin() method,
or calculated by a previous call to the computeLoop() method.
Use this Object to hold information necessary to perform the aggregation.
This method modifies this Object; it does not return a value.
| |
dataField:String — The name of the OLAPMeasure.dataField property
for the measure to be aggregated.
| |
rowData:Object — The object representing the rows data that is being analyzed.
|
computeObjectBegin | () | 方法 |
public function computeObjectBegin(value:Object):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to start aggregation of aggregated values. Calculating the average value of a group of averages is an example of an aggregation of aggregated values.
參數
value:Object — The Object returned by the call to the computeEnd() method
for a previous aggregation.
Use this Object to hold the information necessary to perform the aggregation.
|
Object — An Object initialized for the aggregation.
Use this Object to hold any information necessary to perform the aggregation.
You pass this Object to subsequent calls to the computeObjectLoop()
and computeObjectEnd() methods.
|
computeObjectEnd | () | 方法 |
public function computeObjectEnd(oldValue:Object, dataField:String):Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to end the computation.
參數
oldValue:Object — The Object returned by a call to the computeObjectLoop() method
that is used to store the aggregation results.
This method modifies this Object; it does not return a value.
| |
dataField:String — The name of the OLAPMeasure.dataField property
for the measure to be aggregated.
|
Number — The aggregated value.
|
computeObjectLoop | () | 方法 |
public function computeObjectLoop(oldValue:Object, newValue:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method when a new aggregated value needs to be added to the aggregation.
參數
oldValue:Object — The Object returned by a call the computeObjectBegin() method,
or calculated by a previous call to the computeObjectLoop() method.
This method modifies this Object; it does not return a value.
| |
newValue:Object — The Object returned by the call to the computeEnd() method
for a previous aggregation.
|
Tue Jun 12 2018, 03:47 PM Z