dm.datacube
Class Dimension
java.lang.Object
|
+--dm.datacube.Dimension
- public class Dimension
- extends java.lang.Object
Represents and stores dimension data
- Author:
- Scott Sanner
Constructor Summary |
Dimension(java.lang.String dim_name)
Constructor |
Method Summary |
void |
addDimData(java.lang.Integer key,
java.util.ArrayList val)
Add a new dimension key and data |
java.util.Set |
getDimKeys()
Retrieve all keys for this dimension |
java.util.Set |
getIndices()
Get the indices for this dimension |
java.lang.String |
getStringVal(java.lang.Integer key)
Get String representation of a key value |
java.lang.String |
toString()
Returns the dimension name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_sDimName
public java.lang.String _sDimName
- Local data members
_nIndex
public int _nIndex
_tmDimKey2DimData
public java.util.TreeMap _tmDimKey2DimData
Dimension
public Dimension(java.lang.String dim_name)
- Constructor
- Parameters:
dim_name
- Name of this dimension
addDimData
public void addDimData(java.lang.Integer key,
java.util.ArrayList val)
- Add a new dimension key and data
- Parameters:
key
- The Integer key used in the databaseval
- The list of non-key column data
getDimKeys
public java.util.Set getDimKeys()
- Retrieve all keys for this dimension
- Returns:
- Set of Integers (representing dim keys)
getStringVal
public java.lang.String getStringVal(java.lang.Integer key)
- Get String representation of a key value
- Parameters:
key
- The dimension to key to get the String for- Returns:
- The String representation
getIndices
public java.util.Set getIndices()
- Get the indices for this dimension
- Returns:
- Set of Integer indices
toString
public java.lang.String toString()
- Returns the dimension name
- Overrides:
toString
in class java.lang.Object
- Returns:
- Dimension name