|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.OlapElementBase
mondrian.olap.SetBase
public class SetBase
Skeleton implementation of NamedSet interface.
| 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 |
| Constructor Summary | |
|---|---|
SetBase(String name,
String caption,
String description,
Exp exp,
boolean validated,
Map<String,Annotation> annotationMap)
Creates a SetBase. |
|
| Method Summary | |
|---|---|
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)
|
| 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 |
| Constructor Detail |
|---|
SetBase(String name,
String caption,
String description,
Exp exp,
boolean validated,
Map<String,Annotation> annotationMap)
name - Namecaption - Captiondescription - Descriptionexp - Expressionvalidated - Whether has been validatedannotationMap - Annotations| Method Detail |
|---|
public Map<String,Annotation> getAnnotationMap()
AnnotatedThe map may be empty, never null.
getAnnotationMap in interface Annotatedpublic String getNameUniqueWithinQuery()
NamedSetThis 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 NamedSetpublic boolean isDynamic()
NamedSetEvaluation rules:
isDynamic in interface NamedSetpublic Object clone()
clone in class OlapElementBaseprotected org.apache.log4j.Logger getLogger()
getLogger in class OlapElementBasepublic String getUniqueName()
getUniqueName in interface OlapElementpublic String getName()
getName in interface OlapElementpublic String getQualifiedName()
OlapElement
getQualifiedName in interface OlapElementpublic String getDescription()
getDescription in interface OlapElementpublic Hierarchy getHierarchy()
getHierarchy in interface OlapElementpublic Dimension getDimension()
OlapElementExample 1:
has dimension[Sales].children
[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);
getDimension in interface OlapElement
public OlapElement lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
OlapElement
lookupChild in interface OlapElementpublic void setName(String name)
NamedSet
setName in interface NamedSetpublic void setDescription(String description)
public void setAnnotationMap(Map<String,Annotation> annotationMap)
public Exp getExp()
NamedSet
getExp in interface NamedSetpublic NamedSet validate(Validator validator)
validate in interface NamedSetpublic Type getType()
NamedSet
getType in interface NamedSet
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||