public final class RewriteParseContextGenerator
extends java.lang.Object
SemanticAnalyzer
but it creates only the ParseContext for the input query command.
It does not optimize or generate map-reduce tasks for the input query.
This can be used when you need to create operator tree for an internal query.Modifier and Type | Method and Description |
---|---|
static ParseContext |
generateOperatorTree(HiveConf conf,
java.lang.String command)
Parse the input
String command and generate a ASTNode tree. |
public static ParseContext generateOperatorTree(HiveConf conf, java.lang.String command) throws SemanticException
String
command and generate a ASTNode tree.conf
- command
- SemanticException
Copyright © 2012 The Apache Software Foundation