|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MdxParser
Parser for the MDX query language.
A parser is reusable but not reentrant: you can call parseSelect(java.lang.String)
and parseExpression(java.lang.String)
several times, but not at the same time
from different threads.
MdxParserFactory
Method Summary | |
---|---|
ParseTreeNode |
parseExpression(java.lang.String mdx)
Parses an MDX expression and returns a parse tree. |
SelectNode |
parseSelect(java.lang.String mdx)
Parses an MDX Select statement and returns the SelectNode at the
root of the parse tree. |
Method Detail |
---|
SelectNode parseSelect(java.lang.String mdx)
SelectNode
at the
root of the parse tree.
In order to be parsed successfully, the expression must be
syntactically correct but does not need to be valid. (Syntactic
correctness and validity are described further in the description of
parseExpression(String)
.)
mdx
- MDX query string
ParseTreeNode parseExpression(java.lang.String mdx)
An expression is a combination of operators and operands, which can occur in many places inside an MDX query, such as the definition of a calculated member or an axis.
In order to be parsed successfully, the expression must be syntactically correct but does not need to be valid. For example,
(1 + (2 + 3)
is syntactically incorrect,
because there are more open parentheses "(" than close parentheses ")",
and the parser will give an error. Conversely,
(1 + [Measures].[Bad Measure])
is syntactically correct, and the parser
will successfully create a parse tree, even if
[Measures].[Bad Measure]
does not exist.
mdx
- MDX expression
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |