Package mondrian.olap
Class Query.ScopedNamedSet
java.lang.Object
mondrian.olap.Query.ScopedNamedSet
- All Implemented Interfaces:
Annotated,NamedSet,OlapElement
- Enclosing class:
- Query
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotations.Returns the dimension of a this expression, or null if no dimension is defined.getExp()Returns the expression used to derive this named set.getLocalized(OlapElement.LocalizedProperty prop, Locale locale) Returns the value of a property (caption or description) of this element in the given locale.getName()Returns a name for this set that is unique within the query.Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".getType()Returns the type of this named set.booleanReturns whether this named set is dynamic.booleanReturns whether this element is visible to end-users.lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType) Looks up a child element, returning null if it does not exist.voidvoidSets the name of this named set.
-
Method Details
-
getName
- Specified by:
getNamein interfaceOlapElement
-
getNameUniqueWithinQuery
Description copied from interface:NamedSetReturns 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:
getNameUniqueWithinQueryin interfaceNamedSet
-
isDynamic
public boolean isDynamic()Description copied from interface:NamedSetReturns 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.
-
getExp
Description copied from interface:NamedSetReturns the expression used to derive this named set. -
setExp
-
setName
Description copied from interface:NamedSetSets the name of this named set. -
getType
Description copied from interface:NamedSetReturns the type of this named set. -
getAnnotationMap
Description copied from interface:AnnotatedReturns a list of annotations.The map may be empty, never null.
- Specified by:
getAnnotationMapin interfaceAnnotated- Returns:
- Map from annotation name to annotations.
-
validate
-
getUniqueName
- Specified by:
getUniqueNamein interfaceOlapElement
-
getDescription
- Specified by:
getDescriptionin interfaceOlapElement
-
lookupChild
Description copied from interface:OlapElementLooks up a child element, returning null if it does not exist.- Specified by:
lookupChildin interfaceOlapElement
-
getQualifiedName
Description copied from interface:OlapElementReturns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedNamein interfaceOlapElement
-
getCaption
- Specified by:
getCaptionin interfaceOlapElement
-
isVisible
public boolean isVisible()Description copied from interface:OlapElementReturns 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:
isVisiblein interfaceOlapElement- Returns:
- Whether this element is visible
-
getHierarchy
- Specified by:
getHierarchyin interfaceOlapElement
-
getDimension
Description copied from interface:OlapElementReturns the dimension of a this expression, or null if no dimension is defined. Applicable only to set expressions.Example 1:
has dimension[Sales].children
[Sales].Example 2:
has dimension [Promotion Media].order(except([Promotion Media].[Media Type].members, {[Promotion Media].[Media Type].[No Media]}), [Measures].[Unit Sales], DESC)Example 3:
has no dimension (well, actually it is [Product] x [Gender], but we can't represent that, so we return null);CrossJoin([Product].[Product Department].members, [Gender].members)- Specified by:
getDimensionin interfaceOlapElement
-
getLocalized
Description copied from interface:OlapElementReturns the value of a property (caption or description) of this element in the given locale.- Specified by:
getLocalizedin interfaceOlapElementlocale- Locale- Returns:
- Localized caption or description
-