Package mondrian.olap
Class SetBase
java.lang.Object
mondrian.olap.OlapElementBase
mondrian.olap.SetBase
- All Implemented Interfaces:
Annotated
,NamedSet
,OlapElement
Skeleton implementation of
NamedSet
interface.- Since:
- 6 August, 2001
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from interface mondrian.olap.OlapElement
OlapElement.LocalizedProperty
-
Field Summary
Fields inherited from class mondrian.olap.OlapElementBase
caption, visible
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns 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.protected org.apache.logging.log4j.Logger
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.boolean
Returns whether this named set is dynamic.lookupChild
(SchemaReader schemaReader, Id.Segment s, MatchType matchType) Looks up a child element, returning null if it does not exist.void
setAnnotationMap
(Map<String, Annotation> annotationMap) void
setDescription
(String description) void
setDisplayFolder
(String displayFolder) void
Sets the name of this named set.Methods inherited from class mondrian.olap.OlapElementBase
computeHashCode, equals, equals, getCaption, getLocalized, hashCode, isVisible, setCaption, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface mondrian.olap.OlapElement
getCaption, getLocalized, isVisible
-
Method Details
-
getAnnotationMap
Description copied from interface:Annotated
Returns a list of annotations.The map may be empty, never null.
- Specified by:
getAnnotationMap
in interfaceAnnotated
- Returns:
- Map from annotation name to annotations.
-
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 interfaceNamedSet
-
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.
-
clone
- Overrides:
clone
in classOlapElementBase
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()- Specified by:
getLogger
in classOlapElementBase
-
getUniqueName
- Specified by:
getUniqueName
in interfaceOlapElement
-
getName
- Specified by:
getName
in interfaceOlapElement
-
getQualifiedName
Description copied from interface:OlapElement
Returns the name of this element qualified by its class, for example "hierarchy 'Customers'".- Specified by:
getQualifiedName
in interfaceOlapElement
-
getDescription
- Specified by:
getDescription
in interfaceOlapElement
-
getDisplayFolder
-
getHierarchies
-
getHierarchy
- Specified by:
getHierarchy
in interfaceOlapElement
-
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:
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:
getDimension
in interfaceOlapElement
-
lookupChild
Description copied from interface:OlapElement
Looks up a child element, returning null if it does not exist.- Specified by:
lookupChild
in interfaceOlapElement
-
setName
Description copied from interface:NamedSet
Sets the name of this named set. -
setDescription
-
setDisplayFolder
-
setAnnotationMap
-
getExp
Description copied from interface:NamedSet
Returns the expression used to derive this named set. -
validate
-
getType
Description copied from interface:NamedSet
Returns the type of this named set.
-