public interface MdxValidator
A validator is reusable but not reentrant: you can call
validateSelect(org.olap4j.mdx.SelectNode)
several times, but not at
the same time from different threads.
To create a validator, use the
MdxParserFactory.createMdxValidator(org.olap4j.OlapConnection)
method.
MdxParserFactory
,
MdxParser
Modifier and Type | Method and Description |
---|---|
SelectNode |
validateSelect(SelectNode selectNode)
Validates an MDX SELECT statement.
|
SelectNode validateSelect(SelectNode selectNode) throws OlapException
The SelectNode representing the SELECT statement may have been
created by an MdxParser
, or it may have been built
programmatically.
If the parse tree is invalid, throws an OlapException
.
If it is valid, returns a parse tree. This parse tree may or may not
be the same parse tree passed as an argument. After validation, you can
ascertain the type of each node of the parse tree by calling its
ParseTreeNode.getType()
method.
selectNode
- Parse tree node representing a SELECT statementOlapException
- if node is invalid