|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.olap.QueryPart mondrian.olap.Formula
public class Formula
A Formula
is a clause in an MDX query which defines a Set or a
Member.
Constructor Summary | |
---|---|
Formula(Id id,
Exp exp)
Constructs formula specifying a set. |
|
Formula(Id id,
Exp exp,
MemberProperty[] memberProperties)
Constructs a formula specifying a member. |
Method Summary | |
---|---|
Object |
accept(MdxVisitor visitor)
Accepts a visitor to this Formula. |
(package private) void |
accept(Validator validator)
Resolves identifiers into objects. |
Object |
clone()
|
(package private) static Formula[] |
cloneArray(Formula[] x)
|
void |
compile()
|
(package private) void |
createElement(Query q)
Creates the Member or NamedSet object which this formula
defines. |
String |
getCaption()
Returns this formula's caption. |
Object[] |
getChildren()
Returns an array of the object's children. |
(package private) OlapElement |
getElement()
|
Exp |
getExpression()
|
Id |
getIdentifier()
Returns the Identifier of the set or member which is declared by this Formula. |
Member |
getMdxMember()
Returns the Member. |
String |
getName()
Returns this formula's name. |
NamedSet |
getNamedSet()
|
Number |
getSolveOrder()
Returns the solve order. |
(package private) String |
getUniqueName()
Returns the unique name of the member or set. |
boolean |
isMember()
|
(package private) void |
rename(String newName)
Changes the last part of the name to newName . |
void |
unparse(PrintWriter pw)
Writes a string representation of this parse tree node to the given writer. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Formula(Id id, Exp exp)
public Formula(Id id, Exp exp, MemberProperty[] memberProperties)
Method Detail |
---|
public Object clone()
clone
in class Object
static Formula[] cloneArray(Formula[] x)
void accept(Validator validator)
validator
- Validation context to resolve the identifiers in this
formulavoid createElement(Query q)
Member
or NamedSet
object which this formula
defines.
public Object[] getChildren()
Walkable
Walkable
are ignored.
getChildren
in interface Walkable
getChildren
in class QueryPart
public void unparse(PrintWriter pw)
QueryPart
unparse
in class QueryPart
pw
- writerpublic boolean isMember()
public NamedSet getNamedSet()
public Id getIdentifier()
public String getName()
public String getCaption()
void rename(String newName)
newName
. For example,
[Abc].[Def].[Ghi]
becomes [Abc].[Def].[Xyz]
;
and the member or set is renamed from Ghi
to
Xyz
.
String getUniqueName()
OlapElement getElement()
public Exp getExpression()
public Member getMdxMember()
public Number getSolveOrder()
public void compile()
public Object accept(MdxVisitor visitor)
MdxVisitor.visit(Formula)
method.
visitor
- Visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |