|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.olap4j.type.CubeType
public class CubeType
The type of an expression which represents a Cube or Virtual Cube.
Constructor Summary | |
---|---|
CubeType(Cube cube)
Creates a type representing a cube. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Cube |
getCube()
Returns the cube. |
Dimension |
getDimension()
Returns the dimension of this type, or null if not known. |
Hierarchy |
getHierarchy()
Returns the hierarchy of this type. |
Level |
getLevel()
Returns the level of this type, or null if not known. |
int |
hashCode()
|
boolean |
usesDimension(Dimension dimension,
boolean maybe)
Returns whether this type contains a given dimension. For example: DimensionType([Gender]) uses only the
[Gender] dimension.
TupleType(MemberType([Gender]), MemberType([Store]))
uses [Gender] and [Store]
dimensions.
The maybe parameter comes into play when the
dimensional information is incomplete. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CubeType(Cube cube)
cube
- CubeMethod Detail |
---|
public Cube getCube()
public boolean usesDimension(Dimension dimension, boolean maybe)
Type
DimensionType([Gender])
uses only the
[Gender]
dimension.TupleType(MemberType([Gender]), MemberType([Store]))
uses [Gender]
and [Store]
dimensions.maybe
parameter comes into play when the
dimensional information is incomplete. For example, when applied to
TupleType(MemberType(null), MemberType([Store]))
,
usesDimension([Gender], false)
returns true because it
is possible that the expression returns a member of the
[Gender]
dimension.
usesDimension
in interface Type
dimension
- Dimensionmaybe
- If true, returns true only if this type definitely
uses the dimension
maybe
is true,
possibly) uses the given dimensionpublic Dimension getDimension()
Type
getDimension
in interface Type
public Hierarchy getHierarchy()
Type
getHierarchy
in interface Type
public Level getLevel()
Type
getLevel
in interface Type
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |