Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.olap.data
Class DefaultOlapTuple

java.lang.Object
  extended by com.citra.pivot.olap.data.DefaultOlapTuple
All Implemented Interfaces:
OlapTuple

public class DefaultOlapTuple
extends Object
implements OlapTuple

DefaultOlapTuple is the default tuple implementation.


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

Field Detail

members

protected MemberList members
the members of the tuple

Constructor Detail

DefaultOlapTuple

public DefaultOlapTuple()
Constructs a DefaultOlapTuple.


DefaultOlapTuple

public DefaultOlapTuple(OlapMember member)
Constructs a DefaultOlapTuple.


DefaultOlapTuple

public DefaultOlapTuple(List members)
Constructs a DefaultOlapTuple.

Method Detail

addMember

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

Parameters:
member - the member to add

addMembers

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

Parameters:
members - the members to add

getDimensionality

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

Specified by:
getDimensionality in interface OlapTuple
Returns:
the tuple's dimensionality

getMembers

public MemberList getMembers()
Returns the members that this tuple contains.

Specified by:
getMembers in interface OlapTuple
Returns:
the tuple's list of members

Copyright © 2011 Citra Technologies. All Rights Reserved.