((Apenas para componentes do Flex Data Visualization))
Pacotemx.olap
Classepublic class OLAPSet
HerançaOLAPSet Inheritance Object
Implementa IOLAPSet

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.

Veja também

mx.olap.IOLAPSet
mx.olap.OLAPQueryAxis
mx.olap.IOLAPResultAxis
mx.olap.OLAPResultAxis


Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  tuples : Array
[read-only] The tuples contained by this set instance, as an Array of IOLAPTuple instances.
OLAPSet
Métodos Públicos
 MétodoDefinido por
  
Constructor
OLAPSet
  
Adds a new member to the set.
OLAPSet
  
addElements(elements:IList):void
Adds a list of members to the set.
OLAPSet
  
Adds a new tuple to the set.
OLAPSet
  
Returns a new IOLAPSet instance that contains a crossjoin of this IOLAPSet instance and input.
OLAPSet
 Inherited
Indicates whether an object has a specified property defined.
Object
  
hierarchize(post:Boolean = false):IOLAPSet
Returns a new IOLAPSet that is hierarchized version of this set.
OLAPSet
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
  
Returns a new IOLAPSet instance that contains a union of this IOLAPSet instance and input.
OLAPSet
 Inherited
Returns the primitive value of the specified object.
Object
Métodos Protegidos
 MétodoDefinido por
  
Returns information about the relative location of two members in the set.
OLAPSet
  
Returns the common IOLAPHierarchy instance for two tuples, or null if the tuples do not share a hierarchy.
OLAPSet
  
Returns information about the relative location of two tuples in the set.
OLAPSet
Detalhes da propriedade
tuplespropriedade
tuples:Array  [read-only]

The tuples contained by this set instance, as an Array of IOLAPTuple instances.


Implementação
    public function get tuples():Array
Detalhes do construtor
OLAPSet()Construtor
public function OLAPSet()

Constructor

Detalhes do método
addElement()método
public function addElement(element:IOLAPElement):void

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.

Parâmetros

element: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.

addElements()método 
public function addElements(elements:IList):void

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.

Parâmetros

elements:IList — The members to add, as a list of IOLAPMember instances. A new tuple is created for each member.

addTuple()método 
public function addTuple(tuple:IOLAPTuple):void

Adds a new tuple to the set.

Parâmetros

tuple:IOLAPTuple — The tuple to add.

compareMembers()método 
protected function compareMembers(m1:IOLAPMember, m2:IOLAPMember):int

Returns information about the relative location of two members in the set.

Parâmetros

m1:IOLAPMember — The first member.
 
m2:IOLAPMember — The second member.

Retorna
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
crossJoin()método 
public function crossJoin(input:IOLAPSet):IOLAPSet

Returns a new IOLAPSet instance that contains a crossjoin of this IOLAPSet instance and input.

Parâmetros

input:IOLAPSet — An IOLAPSet instance.

Retorna
IOLAPSet — An IOLAPSet instance that contains a crossjoin of this IOLAPSet instance and input.
findCommonHierarchy()método 
protected function findCommonHierarchy(t1:OLAPTuple, t2:OLAPTuple):IOLAPHierarchy

Returns the common IOLAPHierarchy instance for two tuples, or null if the tuples do not share a hierarchy.

Parâmetros

t1:OLAPTuple — The first tuple.
 
t2:OLAPTuple — The second tuple.

Retorna
IOLAPHierarchy — The common IOLAPHierarchy instance for the two tuples, or null if the tuples do not share a hierarchy.
hierarchize()método 
public function hierarchize(post:Boolean = false):IOLAPSet

Returns a new IOLAPSet that is hierarchized version of this set.

Parâmetros

post:Boolean (default = false) — If true indicates that children should precede parents. By default, parents precede children.

Retorna
IOLAPSet — A new IOLAPSet that is hierarchized version of this set.
sortTuple()método 
protected function sortTuple(t1:OLAPTuple, t2:OLAPTuple):int

Returns information about the relative location of two tuples in the set.

Parâmetros

t1:OLAPTuple — The first tuple.
 
t2:OLAPTuple — The second tuple.

Retorna
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
union()método 
public function union(input:IOLAPSet):IOLAPSet

Returns a new IOLAPSet instance that contains a union of this IOLAPSet instance and input.

Parâmetros

input:IOLAPSet — An IOLAPSet instance.

Retorna
IOLAPSet — An IOLAPSet instance that contains a union of this IOLAPSet instance and input.