Class RolapDimension

    • Constructor Detail

      • RolapDimension

        RolapDimension​(Schema schema,
                       java.lang.String name,
                       java.lang.String caption,
                       boolean visible,
                       java.lang.String description,
                       DimensionType dimensionType,
                       boolean highCardinality,
                       java.util.Map<java.lang.String,​Annotation> annotationMap)
    • Method Detail

      • newHierarchy

        RolapHierarchy newHierarchy​(java.lang.String subName,
                                    boolean hasAll,
                                    RolapHierarchy closureFor)
        Creates a hierarchy.
        Parameters:
        subName - Name of this hierarchy.
        hasAll - Whether hierarchy has an 'all' member
        closureFor - Hierarchy for which the new hierarchy is a closure; null for regular hierarchies
        Returns:
        Hierarchy
      • getHierarchy

        public Hierarchy getHierarchy()
        Returns the hierarchy of an expression.

        In this case, the expression is a dimension, so the hierarchy is the dimension's default hierarchy (its first).

        Specified by:
        getHierarchy in interface OlapElement
        Overrides:
        getHierarchy in class DimensionBase
      • getSchema

        public Schema getSchema()
        Description copied from interface: Dimension
        Returns the schema this dimension belongs to.
      • getAnnotationMap

        public java.util.Map<java.lang.String,​Annotation> getAnnotationMap()
        Description copied from interface: Annotated
        Returns a list of annotations.

        The map may be empty, never null.

        Returns:
        Map from annotation name to annotations.