|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tonbeller.jpivot.olap.model.OlapUtils
public class OlapUtils
Misc helpers
Method Summary | |
---|---|
static boolean |
compareMembers(Member[] aMem1,
Member[] aMem2)
compare member array |
static int |
countHierarchies(Axis axis)
returns the number of members on each position |
static java.util.Set |
getActiveSlicerDimensions(OlapModel model)
Return a list of active dimensions on the slicer |
static java.util.Set |
getActiveSlicerHierarchies(OlapModel model)
Return a list of active dimensions on the slicer |
static java.util.List |
getCellList(Cell[][] matrix)
creates a list of cells out of a matrix |
static Cell[][] |
getCellMatrix(Result result)
returns a matrix[rows][columns] of cells |
static Level |
getChildLevel(Level level)
|
static Level |
getLowestLevel(Hierarchy hier)
|
static Level |
getParentLevel(Level level)
|
static java.util.Set |
getSlicerDimensions(OlapModel model)
return the dimensions that are on the slicer axis (all that are not visible) |
static java.util.Set |
getSlicerHierarchies(OlapModel model)
return the hierarchies that are on the slicer axis (all that are not visible) |
static java.util.Set |
getVisibleDimensions(OlapModel model)
return the dimensions that are displayed on a visible axis |
static boolean |
isInfixFunction(java.lang.String fuName)
check, whether a function name matches an infis function like "+" or "-" |
static boolean |
isPrefixFunction(java.lang.String fuName)
check, whether a function name matches an prefix function like "not" or "unary -" |
static boolean |
isSingleRecord(Dimension dim)
true if for every member of the lowest level of any hierarchy in dim
there is a corresponding row in the fact table. |
static boolean |
isSingleRecord(Hierarchy hier)
true if for every member of the lowest level of hier
there is a corresponding row in the fact table. |
static Cell[][] |
transposeCellMatrix(Cell[][] oldCells)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Cell[][] getCellMatrix(Result result)
result
- - a 0, 1, or 2 dimensional Result
getCellList(com.tonbeller.jpivot.olap.model.Cell[][])
public static java.util.List getCellList(Cell[][] matrix)
getCellMatrix(com.tonbeller.jpivot.olap.model.Result)
public static Cell[][] transposeCellMatrix(Cell[][] oldCells)
public static int countHierarchies(Axis axis)
public static Level getParentLevel(Level level)
public static Level getChildLevel(Level level)
public static boolean compareMembers(Member[] aMem1, Member[] aMem2)
aMem1
- aMem2
-
public static java.util.Set getVisibleDimensions(OlapModel model) throws OlapException
OlapException
public static java.util.Set getSlicerDimensions(OlapModel model) throws OlapException
OlapException
public static boolean isInfixFunction(java.lang.String fuName)
fuName
-
public static boolean isPrefixFunction(java.lang.String fuName)
fuName
-
public static boolean isSingleRecord(Hierarchy hier)
hier
there is a corresponding row in the fact table. If so, the
Hierarchy is handled differently in the GUI.
public static boolean isSingleRecord(Dimension dim)
dim
there is a corresponding row in the fact table. If so, the
Hierarchy is handled differently in the GUI.
public static Level getLowestLevel(Hierarchy hier)
public static java.util.Set getActiveSlicerDimensions(OlapModel model) throws OlapException
OlapException
public static java.util.Set getActiveSlicerHierarchies(OlapModel model) throws OlapException
OlapException
public static java.util.Set getSlicerHierarchies(OlapModel model) throws OlapException
OlapException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |