Package mondrian.rolap
Class HierarchyUsage
java.lang.Object
mondrian.rolap.HierarchyUsage
A
HierarchyUsage
is the usage of a hierarchy in the context
of a cube. Private hierarchies can only be used in their own
cube. Public hierarchies can be used in several cubes. The problem comes
when several cubes which the same public hierarchy are brought together
in one virtual cube. There are now several usages of the same public
hierarchy. Which one to use? It depends upon what measure we are
currently using. We should use the hierarchy usage for the fact table
which underlies the measure. That is what determines the foreign key to
join on.
A HierarchyUsage
is identified by
(hierarchy.sharedHierarchy, factTable)
if the hierarchy is
shared, or (hierarchy, factTable)
if it is private.- Since:
- 21 March, 2002
- Author:
- jhyde
-
Field Summary
Modifier and TypeFieldDescriptionprotected final MondrianDef.Relation
Fact table (or relation) which this usage is joining to. -
Method Summary
-
Field Details
-
fact
Fact table (or relation) which this usage is joining to. This identifies the usage, and determines which join conditions need to be used.
-
-
Method Details
-
getLogger
protected org.apache.logging.log4j.Logger getLogger() -
getHierarchyName
-
getFullName
-
getName
-
getForeignKey
-
getSource
-
getLevelName
-
getUsagePrefix
-
getJoinTable
-
getJoinExp
-
getKind
public mondrian.rolap.HierarchyUsage.Kind getKind() -
isVirtual
public boolean isVirtual() -
isPrivate
public boolean isPrivate() -
equals
-
hashCode
public int hashCode() -
toString
-