org.apache.hadoop.hive.ql.optimizer.index
Class RewriteParseContextGenerator
java.lang.Object
org.apache.hadoop.hive.ql.optimizer.index.RewriteParseContextGenerator
public final class RewriteParseContextGenerator
- extends Object
RewriteParseContextGenerator is a class that offers methods to generate operator tree
for input queries. It is implemented on lines of the analyzeInternal(..) method
of 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.
generateOperatorTree
public static ParseContext generateOperatorTree(HiveConf conf,
String command)
throws SemanticException
- Parse the input
String
command and generate a ASTNode tree.
- Parameters:
conf
- command
-
- Returns:
- the parse context
- Throws:
SemanticException
Copyright © 2014 The Apache Software Foundation. All rights reserved.