Package mondrian.olap
Class Formula
java.lang.Object
mondrian.olap.QueryPart
mondrian.olap.Formula
A
Formula is a clause in an MDX query which defines a Set or a
Member.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(MdxVisitor visitor) Accepts a visitor to this Formula.clone()voidcompile()Returns this formula's caption.Object[]Returns the Identifier of the set or member which is declared by this Formula.Returns the Member.getName()Returns this formula's name.Returns the solve order.booleanisMember()voidunparse(PrintWriter pw) Writes a string representation of this parse tree node to the given writer.
-
Constructor Details
-
Formula
Constructs formula specifying a set. -
Formula
Constructs a formula specifying a member.
-
-
Method Details
-
clone
-
getChildren
- Overrides:
getChildrenin classQueryPart
-
unparse
Description copied from class:QueryPartWrites a string representation of this parse tree node to the given writer. -
isMember
public boolean isMember() -
getNamedSet
-
getIdentifier
Returns the Identifier of the set or member which is declared by this Formula.- Returns:
- Identifier
-
getName
Returns this formula's name. -
getCaption
Returns this formula's caption. -
getExpression
-
getMdxMember
Returns the Member. (Not valid if this formula defines a set.) -
getSolveOrder
Returns the solve order. (Not valid if this formula defines a set.)- Returns:
- Solve order, or null if SOLVE_ORDER property is not specified or is not a number or is not constant
-
compile
public void compile() -
accept
Accepts a visitor to this Formula. The default implementation dispatches to theMdxVisitor.visit(Formula)method.- Parameters:
visitor- Visitor
-