Package mondrian.olap
Interface NamedSet
- All Superinterfaces:
Annotated
,OlapElement
- All Known Implementing Classes:
Query.ScopedNamedSet
,SetBase
A named set of members or tuples.
A set can be defined in a query, using a WITH SET
clause,
or in a schema. Named sets in a schema can be defined against a particular
cube or virtual cube, or shared between all cubes.
- Since:
- 6 August, 2001
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
Method Summary
Methods inherited from interface mondrian.olap.Annotated
getAnnotationMap
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getDescription, getDimension, getHierarchy, getLocalized, getName, getQualifiedName, getUniqueName, isVisible, lookupChild
-
Method Details
-
setName
Sets the name of this named set. -
getType
Type getType()Returns the type of this named set. -
getExp
Exp getExp()Returns the expression used to derive this named set. -
validate
-
getNameUniqueWithinQuery
String getNameUniqueWithinQuery()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.
-
isDynamic
boolean isDynamic()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.
- Returns:
- Whether this named set is dynamic
-