Interface MdxValidator

    • Method Detail

      • validateSelect

        SelectNode validateSelect​(SelectNode selectNode)
                           throws OlapException
        Validates an MDX SELECT statement.

        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.

        Parameters:
        selectNode - Parse tree node representing a SELECT statement
        Returns:
        Validated parse tree
        Throws:
        OlapException - if node is invalid