public class SetBase extends OlapElementBase implements NamedSet
NamedSet
interface.OlapElement.LocalizedProperty
caption, visible
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Map<String,Annotation> |
getAnnotationMap()
Returns a list of annotations.
|
String |
getDescription() |
Dimension |
getDimension()
Returns the dimension of a this expression, or null if no dimension is
defined.
|
Exp |
getExp()
Returns the expression used to derive this named set.
|
Hierarchy |
getHierarchy() |
protected org.apache.log4j.Logger |
getLogger() |
String |
getName() |
String |
getNameUniqueWithinQuery()
Returns a name for this set that is unique within the query.
|
String |
getQualifiedName()
Returns the name of this element qualified by its class, for example
"hierarchy 'Customers'".
|
Type |
getType()
Returns the type of this named set.
|
String |
getUniqueName() |
boolean |
isDynamic()
Returns whether this named set is dynamic.
|
OlapElement |
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 |
setName(String name)
Sets the name of this named set.
|
NamedSet |
validate(Validator validator) |
computeHashCode, equals, equals, getCaption, getLocalized, hashCode, isVisible, setCaption, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getCaption, getLocalized, isVisible
public Map<String,Annotation> getAnnotationMap()
Annotated
The map may be empty, never null.
getAnnotationMap
in interface Annotated
public String getNameUniqueWithinQuery()
NamedSet
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.
getNameUniqueWithinQuery
in interface NamedSet
public boolean isDynamic()
NamedSet
Evaluation rules:
public Object clone()
clone
in class OlapElementBase
protected org.apache.log4j.Logger getLogger()
getLogger
in class OlapElementBase
public String getUniqueName()
getUniqueName
in interface OlapElement
public String getName()
getName
in interface OlapElement
public String getQualifiedName()
OlapElement
getQualifiedName
in interface OlapElement
public String getDescription()
getDescription
in interface OlapElement
public Hierarchy getHierarchy()
getHierarchy
in interface OlapElement
public Dimension getDimension()
OlapElement
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)
getDimension
in interface OlapElement
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElement
lookupChild
in interface OlapElement
public void setName(String name)
NamedSet
public void setDescription(String description)
public void setAnnotationMap(Map<String,Annotation> annotationMap)
public Exp getExp()
NamedSet
Copyright © 2020 Hitachi Vantara. All rights reserved.