org.apache.hadoop.hive.ql.parse
Class ParseUtils

java.lang.Object
  extended by org.apache.hadoop.hive.ql.parse.ParseUtils

public final class ParseUtils
extends Object

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

isJoinToken

public static boolean isJoinToken(ASTNode node)
Tests whether the parse tree node is a join token.

Parameters:
node - The parse tree node
Returns:
boolean

findRootNonNullToken

public 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.

Parameters:
tree - candidate node from which to start searching
Returns:
node at which descent stopped

validateColumnNameUniqueness

public static List<String> validateColumnNameUniqueness(List<FieldSchema> fieldSchemas)
                                                 throws SemanticException
Throws:
SemanticException


Copyright © 2013 The Apache Software Foundation