Package mondrian.olap

Class Query.ScopedNamedSet

    • Method Detail

      • getNameUniqueWithinQuery

        public String getNameUniqueWithinQuery()
        Description copied from interface: NamedSet
        Returns a name for this set that is unique within the query.

        This is necessary when there are several 'AS' expressions, or an 'AS' expression overrides a named set defined using 'WITH MEMBER' clause or against a cube.

        Specified by:
        getNameUniqueWithinQuery in interface NamedSet
      • isDynamic

        public boolean isDynamic()
        Description copied from interface: NamedSet
        Returns whether this named set is dynamic.

        Evaluation rules:

        • A dynamic set is evaluated each time it is used, and inherits the context in which it is evaluated.
        • A static set is evaluated only on first use, in the base context of the cube.
        Specified by:
        isDynamic in interface NamedSet
        Returns:
        Whether this named set is dynamic
      • getExp

        public Exp getExp()
        Description copied from interface: NamedSet
        Returns the expression used to derive this named set.
        Specified by:
        getExp in interface NamedSet
      • setExp

        public void setExp​(Exp expr)
      • setName

        public void setName​(String newName)
        Description copied from interface: NamedSet
        Sets the name of this named set.
        Specified by:
        setName in interface NamedSet
      • getType

        public Type getType()
        Description copied from interface: NamedSet
        Returns the type of this named set.
        Specified by:
        getType in interface NamedSet
      • getAnnotationMap

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

        The map may be empty, never null.

        Specified by:
        getAnnotationMap in interface Annotated
        Returns:
        Map from annotation name to annotations.
      • getQualifiedName

        public String getQualifiedName()
        Description copied from interface: OlapElement
        Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".
        Specified by:
        getQualifiedName in interface OlapElement
      • isVisible

        public boolean isVisible()
        Description copied from interface: OlapElement
        Returns whether this element is visible to end-users.

        Visibility is a hint for client applications. An element's visibility does not affect how it is treated when MDX queries are evaluated.

        Specified by:
        isVisible in interface OlapElement
        Returns:
        Whether this element is visible
      • getDimension

        public Dimension getDimension()
        Description copied from interface: OlapElement
        Returns the dimension of a this expression, or null if no dimension is defined. Applicable only to set expressions.

        Example 1:

         [Sales].children
         
        has dimension [Sales].

        Example 2:

         order(except([Promotion Media].[Media Type].members,
                      {[Promotion Media].[Media Type].[No Media]}),
               [Measures].[Unit Sales], DESC)
         
        has dimension [Promotion Media].

        Example 3:

         CrossJoin([Product].[Product Department].members,
                   [Gender].members)
         
        has no dimension (well, actually it is [Product] x [Gender], but we can't represent that, so we return null);

        Specified by:
        getDimension in interface OlapElement