Package mondrian.olap
Class Id.Segment
java.lang.Object
mondrian.olap.Id.Segment
- Direct Known Subclasses:
Id.KeySegment
,Id.NameSegment
- Enclosing class:
- Id
Component in a compound identifier. It is described by its name and how
the name is quoted.
For example, the identifier
[Store].USA.[New Mexico].&[45]
has four segments:
- "Store",
Id.Quoting.QUOTED
- "USA",
Id.Quoting.UNQUOTED
- "New Mexico",
Id.Quoting.QUOTED
- "45",
Id.Quoting.KEY
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract List<Id.NameSegment>
abstract boolean
Returns whether this segment matches a given name according to the rules of case-sensitivity and quoting.static List<Id.Segment>
Converts an array of names to a list of segments.toString()
abstract void
toString
(StringBuilder buf) Appends this segment to a StringBuilder.
-
Field Details
-
quoting
-
-
Constructor Details
-
Segment
-
-
Method Details
-
toString
-
getQuoting
-
getKeyParts
-
toList
Converts an array of names to a list of segments.- Parameters:
nameParts
- Array of names- Returns:
- List of segments
-
matches
Returns whether this segment matches a given name according to the rules of case-sensitivity and quoting.- Parameters:
name
- Name to match- Returns:
- Whether matches
-
toString
Appends this segment to a StringBuilder.- Parameters:
buf
- String builder to write to
-