public class HiveASTParseDriver extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HiveASTParseDriver.ANTLRNoCaseStringStream
ANTLRNoCaseStringStream.
|
static class |
HiveASTParseDriver.HiveLexerX
HiveLexerX.
|
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 |
---|
HiveASTParseDriver() |
Modifier and Type | Method and Description |
---|---|
HiveParserASTNode |
parse(String command,
HiveParserContext ctx,
String viewFullyQualifiedName)
Parses a command, optionally assigning the parser's token stream to the given context.
|
HiveParserASTNode |
parseHint(String command) |
public static final org.antlr.runtime.tree.TreeAdaptor ADAPTOR
public HiveParserASTNode parse(String command, HiveParserContext ctx, String viewFullyQualifiedName) throws HiveASTParseException
command
- command to parsectx
- context with which to associate this parser's token stream, or null if either no
context is available or the context already has an existing streamHiveASTParseException
public HiveParserASTNode parseHint(String command) throws HiveASTParseException
HiveASTParseException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.