Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
OLAPMeasure

Package | mx.olap
Class | public class OLAPMeasure
Inheritance | OLAPMeasure OLAPMember OLAPElement flash.utils.Proxy

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The OLAPMeasure class represents a member of the measure dimension of an OLAP cube.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | aggregator : Object The aggregation to be performed for this measure. | OLAPMeasure
|  | children : IList [read-only] The children of this member, as a list of IOLAPMember instances. | OLAPMember
|  | dataField : String The field of the input data set that provides the data for this OLAPMember instance. | OLAPMember
|  | dimension : IOLAPDimension [override] The dimension to which this member belongs. | OLAPMember
|  | displayName : String The name of the OLAP element, as a String, which can be used for display. | OLAPElement
|  | hierarchy : IOLAPHierarchy [read-only] The hierarchy to which this member belongs. | OLAPMember
|  | isAll : Boolean [read-only] Returns true if this is the all member of a hierarchy. | OLAPMember
|  | isMeasure : Boolean [read-only] Returns true if this member represents a measure of a dimension. | OLAPMember
|  | level : IOLAPLevel The level to which this member belongs. | OLAPMember
|  | name : String The name of the OLAP element that includes the OLAP schema hierarchy of the element. | OLAPElement
|  | parent : IOLAPMember The parent of this member. | OLAPMember
|  | uniqueName : String [override] [read-only] The unique name of the OLAP element in the cube. | OLAPMember

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | OLAPMeasure(name:String = null, displayName:String = null) Constructor. | OLAPMeasure
|  | findChildMember(name:String):IOLAPMember Returns a child of this member with the given name. | OLAPMember
|  | toString():String Returns the unique name of the element. | OLAPElement

Property Detail

aggregator | property

`aggregator:Object`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The aggregation to be performed for this measure. You can use one of the following values for the property: `"SUM"`, `"AVG"`, `"MIN"`, `"MAX"`, or `"COUNT"`.

You can also use a custom aggregator by implementing the IOLAPCustomAggregator interface, then setting the `aggregator` property to that custom aggregator, as the following example shows:

    aggregator={new CustomAgg()}

Implementation
`public function get aggregator():Object`
`public function set aggregator(value:Object):void`

See also

mx.olap.IOLAPCustomAggregator
Constructor Detail

OLAPMeasure | () | Constructor

`public function OLAPMeasure(name:String = null, displayName:String = null)`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructor.

Parameters

| `name:String` (default = `null`)`` — The name of the OLAP element that includes the OLAP schema hierarchy of the element. For example, "Time_Year", where "Year" is a level of the "Time" dimension in an OLAP schema.
| `displayName:String` (default = `null`)`` — The name of the measure, as a String, which can be used for display.

Sun Mar 5 2017, 03:42 PM +11:00