|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Level
Group of Member
objects in a Hierarchy
,
all with the same attributes and at the same depth in the hierarchy.
Nested Class Summary | |
---|---|
static class |
Level.Type
Enumeration of the types of a Level . |
Method Summary | |
---|---|
int |
getCardinality()
Returns the number of members in this Level. |
int |
getDepth()
Returns the depth of this Level . |
Dimension |
getDimension()
Returns the Dimension this Level belongs to. |
Hierarchy |
getHierarchy()
Returns the Hierarchy this Level belongs to. |
Level.Type |
getLevelType()
Returns the type of this Level . |
List<Member> |
getMembers()
Returns a list of Member objects that belong to this Level. |
NamedList<Property> |
getProperties()
Returns a list of definitions for the properties available to members of this Level . |
boolean |
isCalculated()
Returns whether the level is calculated. |
Methods inherited from interface org.olap4j.metadata.MetadataElement |
---|
getCaption, getDescription, getName, getUniqueName, isVisible |
Method Detail |
---|
int getDepth()
Level
.
Note #1: In an access-controlled context, the first visible level of a hierarchy may not have a depth of 0.
Note #2: In a parent-child hierarchy, the depth of a member (as returned by may not be the same as the depth of its level.
Hierarchy getHierarchy()
Hierarchy
this Level
belongs to.
Dimension getDimension()
Level
belongs to.
(Always equivalent to getHierarchy().getDimension()
.)
Level.Type getLevelType()
Level
.
boolean isCalculated()
NamedList<Property> getProperties()
Level
.
The caller should assume that the list is immutable; if the caller modifies the list, behavior is undefined.
OlapDatabaseMetaData.getProperties(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
List<Member> getMembers() throws OlapException
Member
objects that belong to this Level.
The list does not include calculated members.
Some levels have a very many members. In this case, calling this method may be expensive in space and/or time and is not recommended.
If you need to include calculated members, or if you need to query
specific members or subsets of members in a level, consider instead
generating and executing an MDX query with a single axis. MDX functions
AddCalculatedMembers
, Filter
and Order
are
especially useful. For example,
with member [Measures].[Zero] as 0 select AddCalculatedMembers([Time].[Month].Members) on 0 from [Sales] where [Measures].[Zero]returns the
[Month]
level including calculated members. The
[Measures].[Zero]
calculated member saves the OLAP server the
effort of retrieving cell values.
The members of a level do not have unique names, so unlike
Hierarchy.getRootMembers()
and
Member.getChildMembers()
the result type
is a List
not a NamedList
.
OlapException
- if database error occursint getCardinality()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |