|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.parse.ParseUtils
public final class ParseUtils
Library of utility functions used in the parse code.
Method Summary | |
---|---|
static ASTNode |
findRootNonNullToken(ASTNode tree)
Performs a descent of the leftmost branch of a tree, stopping when either a node with a non-null token is found or the leaf level is encountered. |
static boolean |
isJoinToken(ASTNode node)
Tests whether the parse tree node is a join token. |
static List<String> |
validateColumnNameUniqueness(List<FieldSchema> fieldSchemas)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isJoinToken(ASTNode node)
node
- The parse tree node
public static ASTNode findRootNonNullToken(ASTNode tree)
tree
- candidate node from which to start searching
public static List<String> validateColumnNameUniqueness(List<FieldSchema> fieldSchemas) throws SemanticException
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |