Class KeySegment

java.lang.Object
org.olap4j.mdx.KeySegment
All Implemented Interfaces:
IdentifierSegment

public class KeySegment extends Object implements IdentifierSegment
Segment that represents a key or compound key.

Such a segment appears in an identifier with each component prefixed with "&". For example, in the identifier "[Customer].[State].&[WA]&[USA]", the third segment is a compound key whose parts are "WA" and "USA".

Author:
jhyde
See Also:
  • Constructor Details

    • KeySegment

      public KeySegment(NameSegment... subSegments)
      Creates a KeySegment with one or more sub-segments.
      Parameters:
      subSegments - Array of sub-segments
    • KeySegment

      public KeySegment(List<NameSegment> subSegmentList)
      Creates a KeySegment a list of sub-segments.
      Parameters:
      subSegmentList - List of sub-segments
  • Method Details