net.esper.indicator.pretty
Class CubeTabularDataRenderer
java.lang.Object
net.esper.indicator.pretty.CubeTabularDataRenderer
public final class CubeTabularDataRenderer
- extends Object
Renders a Cube multidimensional table a TabularData from the JMX OpenMbean interface.
Cubes can be 1-dimenstion to n-dimensional. This implementation can render cubes up to only 4 dimensions.
4-dimensional cubes are created as multiple TabularData instances for each member in the page dimension.
The cell dimension (assumed to be dimension 0) and the row dimension (assumed to be dimension 2) are both
placed as rows in a table. The column dimension (dimension 1) is use for filling columns.
Method Summary |
static Map<String,TabularData> |
renderCube(Cube cube)
Render the Cube as a collection of OpenMBean TabularData tables, each table carries a string key
that contains the page dimension member, if present, else just the string TABLE_NAME. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CubeTabularDataRenderer
public CubeTabularDataRenderer()
renderCube
public static Map<String,TabularData> renderCube(Cube cube)
- Render the Cube as a collection of OpenMBean TabularData tables, each table carries a string key
that contains the page dimension member, if present, else just the string TABLE_NAME.
- Parameters:
cube
- is the cube to render
- Returns:
- map of rendered page dimension member as key and TabularData containing table as value