Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table
Class TableTuple

java.lang.Object
  extended by com.citra.pivot.table.TableTuple
All Implemented Interfaces:
OlapTuple

public class TableTuple
extends Object
implements OlapTuple

TableTuple represents a container for members, organized by dimension.


Field Summary
protected  MemberList members
          the tuple's member selections
 
Constructor Summary
TableTuple(List members)
          Constructs a TableTuple.
 
Method Summary
 TableTuple cloneTuple(OlapMember newMember, OlapDimension dimension)
          Creates a new tuple, similar to this one, with a single member of the specified dimension equal to newMember.
 int getDimensionality()
          Retrieves the distinct number of dimensions that are contained in the tuple.
 TableMember getMember(OlapDimension dimension)
          Retrieves the member from the tuple whose dimension is equal to the one passed as argument.
 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 tuple's member selections

Constructor Detail

TableTuple

public TableTuple(List members)
Constructs a TableTuple.

Method Detail

cloneTuple

public TableTuple cloneTuple(OlapMember newMember,
                             OlapDimension dimension)
Creates a new tuple, similar to this one, with a single member of the specified dimension equal to newMember.

Parameters:
newMember - the member to assign to the passed dimension argument
dimension - the dimension of the new member
Returns:
the modified tuple

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

getMember

public TableMember getMember(OlapDimension dimension)
Retrieves the member from the tuple whose dimension is equal to the one passed as argument.

Parameters:
dimension - the member's dimension
Returns:
the member

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.