Hierarchies and different operators in OLAP
Hierarchies and different operators in OLAP
Bee~ Spirits Wine Liquor " Bott Juice Tea Soft Dfink Coffe
3.1. Classification hierarchies
Dimensions have often been associated with different
hierarchically organized levels. These levels correspond to
different granularities of viewing data. The name of each level is
expressed by the corresponding variable name. Generally, the
shift from a lower (more detailed) level to a higher (more
State Maitre ..... Massacn " ' "
aggregate) level is carried out by a mapping. A mapping between
two variables can be complete or incomplete. In the first case the II_r/
( y ~ ~ ..LosAn~ee . . . . . .
i
hierarchy is called total classification hierarchy, and in the
second case it is called partial classification hierarchy. We give Figure 3. The hierarchies along the dimensions Beverages, and
the following definitions: Location (at left) and the relative domain value (at right)
Definition 1 A mapping between two variables of a hierarchy Definition 3 A partial classification hierarchy on a given
defines a containment function if each variable instance of a dimension is a hierarchy in which between at least one adjacent
lower level corresponds to only one variable instance of a higher couple of variables there is no full mapping.
level and each variable instance of a higher level corresponds to
Example 3.2 Consider the chain store example we gave in
at least one variable instance of a lower level. In such case, this
Example 3.1. Suppose that the chain stores of the above
mapping is called full mapping.
mentioned company in the state of California are located only in
Definition 2 A total classification hierarchy on a given some of cities of this state (see Figure 4).
[
dimension is a hierarchy in which between each adjacent couple Location
\
rI \ Example 4.1 Let us consider the data cube represented in Figure
"% / / 2. In Figure 7, an its "multidimensional" view is illustrated. I:l
# of sales
USA
TCity
I
City
I
City i•
" in 1997 in
dors
(a) (b) (c) (d~