|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.olap.Query.ScopedNamedSet
public static class Query.ScopedNamedSet
Method Summary | |
---|---|
java.lang.String |
getCaption()
|
java.lang.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()
|
java.lang.String |
getName()
|
java.lang.String |
getNameUniqueWithinQuery()
Returns a name for this set that is unique within the query. |
java.lang.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. |
java.lang.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 |
setExp(Exp expr)
|
void |
setName(java.lang.String newName)
Sets the name of this named set. |
NamedSet |
validate(Validator validator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
getName
in interface OlapElement
public java.lang.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:
isDynamic
in interface NamedSet
public Exp getExp()
NamedSet
getExp
in interface NamedSet
public void setExp(Exp expr)
public void setName(java.lang.String newName)
NamedSet
setName
in interface NamedSet
public Type getType()
NamedSet
getType
in interface NamedSet
public NamedSet validate(Validator validator)
validate
in interface NamedSet
public java.lang.String getUniqueName()
getUniqueName
in interface OlapElement
public java.lang.String getDescription()
getDescription
in interface OlapElement
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
OlapElement
lookupChild
in interface OlapElement
public java.lang.String getQualifiedName()
OlapElement
getQualifiedName
in interface OlapElement
public java.lang.String getCaption()
getCaption
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
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |