Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
The OLAPSet class represents a set,
which is used to configure the axis of an OLAP query.
A set consists of zero or more tuples;
a set that does not contain any tuples is known as an empty set.
tuples:Array
[read-only]
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
The tuples contained by this set instance,
as an Array of IOLAPTuple instances.
Implementation public function get tuples():Array
public function OLAPSet()
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Constructor
public function addElement(e:IOLAPElement ):void
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Adds a new member to the set.
This method adds the appropriate elements to the set,
depending on the type of element passed in.
If an IOLAPHierarchy element is passed, it adds the default member of the hierarchy.
If an IOLAPLevel element is passed, it adds all the members of the level.
If an IOLAPMember element is passed, it is added to the set.
Parameters
e :IOLAPElement
— The member to add.
If element
is a hierarchy or level, its members
are added. If element
is an instance of IOLAPMember,
it is added directly.
A new tuple is created for each member.
public function addElements(members:IList ):void
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Adds a list of members to the set.
This method can be called when members or children of a hierarchy
or member need to be added to the set.
Parameters
members :IList
— The members to add, as a list of IOLAPMember instances.
A new tuple is created for each member.
public function addTuple(tuple:IOLAPTuple ):void
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Adds a new tuple to the set.
Parameters
protected function compareMembers(m1:IOLAPMember , m2:IOLAPMember ):int
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Returns information about the relative location of
two members in the set.
Parameters
Returns int
— The following:
0 if the members are at the same level
1 if m2 is higher in the hierarchy than m1
-1 if m1 is higher in the hierarchy than m2
public function crossJoin(input:IOLAPSet ):IOLAPSet
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Returns a new IOLAPSet instance that contains a crossjoin of this
IOLAPSet instance and input
.
Parameters
Returns IOLAPSet
— An IOLAPSet instance that contains a crossjoin of this
IOLAPSet instance and input
.
protected function findCommonHierarchy(t1:OLAPTuple , t2:OLAPTuple ):IOLAPHierarchy
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Returns the common IOLAPHierarchy instance for two tuples,
or null if the tuples do not share a hierarchy.
Parameters
Returns IOLAPHierarchy
— The common IOLAPHierarchy instance for the two tuples,
or null if the tuples do not share a hierarchy.
public function hierarchize(post:Boolean = false):IOLAPSet
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Returns a new IOLAPSet that is hierarchized version
of this set.
Parameters
post :Boolean
(default = false
)
— If true
indicates that children should precede parents.
By default, parents precede children.
Returns IOLAPSet
— A new IOLAPSet that is hierarchized version
of this set.
protected function sortTuple(t1:OLAPTuple , t2:OLAPTuple ):int
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Returns information about the relative location of
two tuples in the set.
Parameters
Returns int
— The following:
0 if the tuples are at the same level
1 if t2 is higher than t1
-1 if t1 is higher than t2
public function union(secondSet:IOLAPSet ):IOLAPSet
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1
Returns a new IOLAPSet instance that contains a union of this
IOLAPSet instance and input
.
Parameters
secondSet :IOLAPSet
— An IOLAPSet instance.
Returns IOLAPSet
— An IOLAPSet instance that contains a union of this
IOLAPSet instance and input
.
The Apache Software Foundation Wed Mar 25 2015, 07:57 PM +01:00