Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.data
Class DefaultOlapSet

java.lang.Object
  extended by com.citra.pivot.olap.data.DefaultOlapSet
All Implemented Interfaces:
OlapSet

public class DefaultOlapSet
extends Object
implements OlapSet

DefaultOlapSet is the default set implementation.


Field Summary
protected  TupleList tuples
          the tuples of the set
 
Constructor Summary
DefaultOlapSet()
          Constructs a DefaultOlapSet.
DefaultOlapSet(OlapMember member)
          Constructs a DefaultOlapSet.
DefaultOlapSet(OlapTuple tuple)
          Constructs a DefaultOlapSet.
 
Method Summary
 void addMember(OlapMember member)
          Adds a member to the set.
 void addMembers(List members)
          Adds a list of members to the set.
 void addTuple(OlapTuple tuple)
          Adds a tuple to the set.
 void addTuples(List tuples)
          Adds a list of tuples to the set.
 int getDimensionality()
          Retrieves the distinct number of dimensions that are contained in the set.
 TupleList getTuples()
          Returns the tuples that this set contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tuples

protected TupleList tuples
the tuples of the set

Constructor Detail

DefaultOlapSet

public DefaultOlapSet()
Constructs a DefaultOlapSet.


DefaultOlapSet

public DefaultOlapSet(OlapTuple tuple)
Constructs a DefaultOlapSet.


DefaultOlapSet

public DefaultOlapSet(OlapMember member)
Constructs a DefaultOlapSet.

Method Detail

addMember

public void addMember(OlapMember member)
Adds a member to the set.

Parameters:
member - the member to add

addMembers

public void addMembers(List members)
Adds a list of members to the set.

Parameters:
members - the members to add

addTuple

public void addTuple(OlapTuple tuple)
Adds a tuple to the set.

Parameters:
tuple - the tuple to add

addTuples

public void addTuples(List tuples)
Adds a list of tuples to the set.

Parameters:
tuples - the tuples to add

getDimensionality

public int getDimensionality()
Retrieves the distinct number of dimensions that are contained in the set.

Specified by:
getDimensionality in interface OlapSet
Returns:
the set's dimensionality

getTuples

public TupleList getTuples()
Returns the tuples that this set contains.

Specified by:
getTuples in interface OlapSet
Returns:
the set's list of tuples

Copyright © 2011 Citra Technologies. All Rights Reserved.