public class ParseDriver
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ParseDriver.ANTLRNoCaseStringStream
ANTLRNoCaseStringStream.
|
class |
ParseDriver.HiveLexerX
HiveLexerX.
|
Constructor and Description |
---|
ParseDriver() |
Modifier and Type | Method and Description |
---|---|
ASTNode |
parse(java.lang.String command) |
ASTNode |
parse(java.lang.String command,
Context ctx)
Parses a command, optionally assigning the parser's token stream to the
given context.
|
ASTNode |
parseSelect(java.lang.String command,
Context ctx) |
public ASTNode parse(java.lang.String command) throws ParseException
ParseException
public ASTNode parse(java.lang.String command, Context ctx) throws ParseException
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 streamParseException
public ASTNode parseSelect(java.lang.String command, Context ctx) throws ParseException
ParseException
Copyright © 2012 The Apache Software Foundation