public final class ParseUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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 VarcharTypeParams |
getVarcharParams(java.lang.String typeName,
ASTNode node) |
static boolean |
isJoinToken(ASTNode node)
Tests whether the parse tree node is a join token.
|
static java.util.List<java.lang.String> |
validateColumnNameUniqueness(java.util.List<FieldSchema> fieldSchemas) |
public static boolean isJoinToken(ASTNode node)
node - The parse tree nodepublic static ASTNode findRootNonNullToken(ASTNode tree)
tree - candidate node from which to start searchingpublic static java.util.List<java.lang.String> validateColumnNameUniqueness(java.util.List<FieldSchema> fieldSchemas) throws SemanticException
SemanticExceptionpublic static VarcharTypeParams getVarcharParams(java.lang.String typeName, ASTNode node) throws SemanticException
SemanticExceptionCopyright © 2012 The Apache Software Foundation