public class ParseDriver extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.antlr.runtime.tree.TreeAdaptor |
adaptor
Tree adaptor for making antlr return ASTNodes instead of CommonTree nodes
so that the graph walking algorithms and the rules framework defined in
ql.lib can be used with the AST Nodes.
|
| Constructor and Description |
|---|
ParseDriver() |
| Modifier and Type | Method and Description |
|---|---|
ParseResult |
parse(String command) |
ParseResult |
parse(String command,
org.apache.hadoop.conf.Configuration configuration)
Parses a command, optionally assigning the parser's token stream to the
given context.
|
ASTNode |
parseExpression(String command) |
ASTNode |
parseHint(String command) |
ParseResult |
parseSelect(String command,
org.apache.hadoop.conf.Configuration configuration) |
ASTNode |
parseTriggerActionExpression(String command) |
ASTNode |
parseTriggerExpression(String command) |
public static final org.antlr.runtime.tree.TreeAdaptor adaptor
public ParseResult parse(String command) throws ParseException
ParseExceptionpublic ParseResult parse(String command, org.apache.hadoop.conf.Configuration configuration) throws ParseException
command - command to parseconfiguration - hive configurationParseExceptionpublic ASTNode parseHint(String command) throws ParseException
ParseExceptionpublic ParseResult parseSelect(String command, org.apache.hadoop.conf.Configuration configuration) throws ParseException
ParseExceptionpublic ASTNode parseExpression(String command) throws ParseException
ParseExceptionpublic ASTNode parseTriggerExpression(String command) throws ParseException
ParseExceptionpublic ASTNode parseTriggerActionExpression(String command) throws ParseException
ParseExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.