| 套件 | mx.olap | 
| 介面 | public interface IOLAPCustomAggregator | 
| 實作者 | AverageAggregator, CountAggregator, MaxAggregator, MinAggregator, SumAggregator | 
| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Flex 3 | 
| 執行階段版本: | Flash Player 9, AIR 1.1 | 
You use the methods of this interface in two groups. The first group consists of the
  computeBegin(), computeLoop(), and computeEnd() methods. 
  Use these methods to compute an aggregation of the values of a measure.
The second group consists of the
  computeObjectBegin(), computeObjectLoop(), 
  and computeObjectEnd() methods. 
  Use these methods to compute an aggregation of aggregated values.
| 方法 | 定義自 | ||
|---|---|---|---|
      Flex calls this method to start the computation of an aggregation value.  | IOLAPCustomAggregator | ||
      Flex calls this method to end the computation of the aggregation value.  | IOLAPCustomAggregator | ||
      Flex calls this method when a new value needs to be added to the aggregation.  | IOLAPCustomAggregator | ||
      Flex calls this method to start aggregation of aggregated values.  | IOLAPCustomAggregator | ||
      Flex calls this method to end the computation.  | IOLAPCustomAggregator | ||
      Flex calls this method when a new aggregated value needs to be added to the aggregation.  | IOLAPCustomAggregator | ||
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, value: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.
     
       | |
value: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(value:Object, dataField:String):Number| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Flex 3 | 
| 執行階段版本: | Flash Player 9, AIR 1.1 | 
Flex calls this method to end the computation.
參數
value: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(value: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.
參數
value: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