public static class ParserTest.TestParser extends Parser implements MdxParserValidator.QueryPartFactory
Parser.FactoryImpl
_action_table, _production_table, _reduce_table, action_obj, factory, statement, strictValidation
Constructor and Description |
---|
TestParser() |
Modifier and Type | Method and Description |
---|---|
QueryAxis[] |
getAxes() |
QueryPart[] |
getCellProps() |
String |
getCube() |
Formula[] |
getFormulas() |
Exp |
getSlicer() |
DrillThrough |
makeDrillThrough(Query query,
int maxRowCount,
int firstRowOrdinal,
List<Exp> returnList)
Creates a
DrillThrough object. |
Explain |
makeExplain(QueryPart query)
Creates an
Explain object. |
Query |
makeQuery(Statement statement,
Formula[] formulae,
QueryAxis[] axes,
String cube,
Exp slicer,
QueryPart[] cellProps,
boolean strictValidation)
Creates a
Query object. |
QueryPart |
parseInternal(Statement statement,
String queryString,
boolean debug,
FunTable funTable,
boolean strictValidation) |
void |
setAxes(QueryAxis[] axes) |
void |
setCellProps(QueryPart[] cellProps) |
void |
setCube(String cube) |
void |
setFormulas(Formula[] formulas) |
void |
setSlicer(Exp slicer) |
String |
toMdxString()
Converts this query to a string.
|
action_table, do_action, EOF_sym, error_sym, init_actions, isFunCall, parseExpression, parseInternal, production_table, recursivelyParseExp, reduce_table, report_error, report_fatal_error, scan, start_production, start_state, syntax_error, toExpArray, toFormulaArray, toIdArray, toMemberPropertyArray, toQueryAxisArray, toQueryPartArray, unrecovered_syntax_error, user_init
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, debug_stack, done_parsing, dump_stack, error_recovery, error_sync_size, find_recovery_config, get_action, get_reduce, getScanner, parse_lookahead, parse, read_lookahead, restart_lookahead, setScanner, shift_under_error, try_parse_ahead, unpackFromStrings
public QueryPart parseInternal(Statement statement, String queryString, boolean debug, FunTable funTable, boolean strictValidation)
public Query makeQuery(Statement statement, Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps, boolean strictValidation)
MdxParserValidator.QueryPartFactory
Query
object.
Override this function to make your kind of query.makeQuery
in interface MdxParserValidator.QueryPartFactory
public DrillThrough makeDrillThrough(Query query, int maxRowCount, int firstRowOrdinal, List<Exp> returnList)
MdxParserValidator.QueryPartFactory
DrillThrough
object.makeDrillThrough
in interface MdxParserValidator.QueryPartFactory
public Explain makeExplain(QueryPart query)
MdxParserValidator.QueryPartFactory
Explain
object.makeExplain
in interface MdxParserValidator.QueryPartFactory
public QueryAxis[] getAxes()
public void setAxes(QueryAxis[] axes)
public QueryPart[] getCellProps()
public void setCellProps(QueryPart[] cellProps)
public String getCube()
public void setCube(String cube)
public Formula[] getFormulas()
public void setFormulas(Formula[] formulas)
public Exp getSlicer()
public void setSlicer(Exp slicer)
public String toMdxString()