org.apache.hadoop.hbase.hbql.impl
Class Utils

java.lang.Object
  extended by org.apache.hadoop.hbase.hbql.impl.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static void checkForDefaultConstructors(Class clazz)
           
static boolean getRandomBoolean()
           
static int getRandomPositiveInt(int upper)
           
static boolean hasDefaultConstructor(Class clazz)
           
static boolean isConnectionStatemet(HBqlStatement stmt)
           
static boolean isDMLStatement(HBqlStatement stmt)
           
static boolean isNonConectionStatemet(HBqlStatement stmt)
           
static boolean isSelectStatement(HBqlStatement stmt)
           
static boolean isValidString(String val)
           
static void logException(org.apache.commons.logging.Log log, Exception e)
           
static HBqlStatement parseHBqlStatement(String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

parseHBqlStatement

public static HBqlStatement parseHBqlStatement(String sql)
                                        throws HBqlException
Throws:
HBqlException

isSelectStatement

public static boolean isSelectStatement(HBqlStatement stmt)

isDMLStatement

public static boolean isDMLStatement(HBqlStatement stmt)

isConnectionStatemet

public static boolean isConnectionStatemet(HBqlStatement stmt)

isNonConectionStatemet

public static boolean isNonConectionStatemet(HBqlStatement stmt)

checkForDefaultConstructors

public static void checkForDefaultConstructors(Class clazz)

hasDefaultConstructor

public static boolean hasDefaultConstructor(Class clazz)

isValidString

public static boolean isValidString(String val)

getRandomBoolean

public static boolean getRandomBoolean()

getRandomPositiveInt

public static int getRandomPositiveInt(int upper)

logException

public static void logException(org.apache.commons.logging.Log log,
                                Exception e)


Copyright © 2011. All Rights Reserved.