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
SemanticException
public static VarcharTypeParams getVarcharParams(java.lang.String typeName, ASTNode node) throws SemanticException
SemanticException
Copyright © 2012 The Apache Software Foundation