Supported Hierarchy Types

OLE DB Programmer's Reference

OLE DB for OLAP supports four hierarchy types: balanced, ragged, unbalanced, and network.

One of the most common types is the balanced hierarchy. In a balanced hierarchy, the parent of each member comes from the level immediately above the member. Most hierarchies on the Time dimension are balanced.

In a ragged hierarchy, the parent of a member can come from any level above the level of the member, not just from the level immediately above. This type of hierarchy can also be referred to as ragged-balanced, because levels still exist. A Geography dimension is a typical example of such a hierarchy.

In this example, there is still the concept of a named level—and Country applies equally well to both branches of the hierarchy. The Continent level also applies, but only on one branch of the hierarchy.

In an unbalanced hierarchy, the concept of levels does not apply. Consider a dimension containing components for various products. Because different products contain totally different parts, no notion of a level exists.

The distinguishing feature of a network hierarchy is that nodes can contain more than one parent. A family tree is a common example.

OLE DB for OLAP supports all four types of hierarchies. The MEMBERS schema rowset has not only a parent name but also the level number of the parent. Similarly, the restrictions on this rowset enable you to browse not only by moving up and down the levels but also by moving up and down the inheritance tree.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net