Package mondrian.olap
Class Id.KeySegment
java.lang.Object
mondrian.olap.Id.Segment
mondrian.olap.Id.KeySegment
- Enclosing class:
- Id
Identifier segment representing a key, possibly composite.
-
Field Summary
Fields inherited from class mondrian.olap.Id.Segment
quoting
-
Constructor Summary
ConstructorDescriptionKeySegment
(List<Id.NameSegment> subSegmentList) Creates a KeySegment a list of sub-segments.KeySegment
(Id.NameSegment... subSegments) Creates a KeySegment with one or more sub-segments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
Returns whether this segment matches a given name according to the rules of case-sensitivity and quoting.void
toString
(StringBuilder buf) Appends this segment to a StringBuilder.Methods inherited from class mondrian.olap.Id.Segment
getQuoting, toList, toString
-
Field Details
-
subSegmentList
-
-
Constructor Details
-
KeySegment
Creates a KeySegment with one or more sub-segments.- Parameters:
subSegments
- Array of sub-segments
-
KeySegment
Creates a KeySegment a list of sub-segments.- Parameters:
subSegmentList
- List of sub-segments
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
Description copied from class:Id.Segment
Appends this segment to a StringBuilder.- Specified by:
toString
in classId.Segment
- Parameters:
buf
- String builder to write to
-
getKeyParts
- Specified by:
getKeyParts
in classId.Segment
-
matches
Description copied from class:Id.Segment
Returns whether this segment matches a given name according to the rules of case-sensitivity and quoting.- Specified by:
matches
in classId.Segment
- Parameters:
name
- Name to match- Returns:
- Whether matches
-