org.apache.hadoop.hive.ql.parse
Class ParseDriver
java.lang.Object
org.apache.hadoop.hive.ql.parse.ParseDriver
public class ParseDriver
- extends Object
ParseDriver.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParseDriver
public ParseDriver()
getKeywords
public static Collection<String> getKeywords()
parse
public ASTNode parse(String command)
throws ParseException
- Throws:
ParseException
parse
public ASTNode parse(String command,
Context ctx)
throws ParseException
- Parses a command, optionally assigning the parser's token stream to the
given context.
- Parameters:
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 stream
- Returns:
- parsed AST
- Throws:
ParseException
Copyright © 2013 The Apache Software Foundation