|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.stat.olap.CubeDimensionHelper
public final class CubeDimensionHelper
Utility methods for dealing with Cube multidimensional tables (OLAP style). Enables iterating within dimensions, obtaining cell count for dimension sizes etc.. Cubes can be 1-dimensional to n-dimensional and these utility methods deal with this variety.
Constructor Summary | |
---|---|
CubeDimensionHelper()
|
Method Summary | |
---|---|
protected static int[] |
getDimensionSizes(Dimension[] dimensions)
Compile an array of dimension sizes. |
protected static int |
getOrdinal(int[] dimensionIndizes,
int[] dimensionSizes)
Given index values for each dimension and all dimension sizes this method returns an ordinal value. |
protected static int |
getTotalCells(int[] dimensionSizes)
Returns the number of cells in a cube that has the given dimension sizes. |
protected static void |
nextIndize(int[] dimensionSizes,
int[] dimensionIndizes)
Increments the index values in the dimensionIndizes array given each dimension's size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CubeDimensionHelper()
Method Detail |
---|
protected static int getTotalCells(int[] dimensionSizes)
dimensionSizes
- is an array describing the number of dimensions and size of dimensions (number of members)
protected static void nextIndize(int[] dimensionSizes, int[] dimensionIndizes)
dimensionSizes
- size of each dimensiondimensionIndizes
- index value for each dimension, each value between and dimension size - 1
NoSuchElementException
- when an attempt is made to position indizes past the maxprotected static int[] getDimensionSizes(Dimension[] dimensions)
dimensions
- is an array of dimensions
protected static int getOrdinal(int[] dimensionIndizes, int[] dimensionSizes)
dimensionIndizes
- index value for each dimension, each value between and dimension size - 1dimensionSizes
- size of each dimension
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |