|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.olap.OlapElementBase mondrian.olap.SetBase
class SetBase
Skeleton implementation of NamedSet
interface.
Field Summary |
---|
Fields inherited from class mondrian.olap.OlapElementBase |
---|
caption |
Constructor Summary | |
---|---|
SetBase(String name,
Exp exp)
|
Method Summary | |
---|---|
Object |
clone()
|
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 |
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()
|
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s)
Looks up a child element, returning null if it does not exist. |
OlapElement |
lookupChild(SchemaReader schemaReader,
Id.Segment s,
MatchType matchType)
|
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, hashCode, setCaption, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mondrian.olap.OlapElement |
---|
getCaption |
Constructor Detail |
---|
SetBase(String name, Exp exp)
Method Detail |
---|
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)
OlapElement
lookupChild
in interface OlapElement
public OlapElement lookupChild(SchemaReader schemaReader, Id.Segment s, MatchType matchType)
lookupChild
in interface OlapElement
public void setName(String name)
NamedSet
setName
in interface NamedSet
public Exp getExp()
NamedSet
getExp
in interface NamedSet
public NamedSet validate(Validator validator)
validate
in interface NamedSet
public Type getType()
NamedSet
getType
in interface NamedSet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |