org.apache.hadoop.hive.ql.exec
Class FunctionUtils
java.lang.Object
org.apache.hadoop.hive.ql.exec.FunctionUtils
public class FunctionUtils
- extends Object
FunctionUtils
public FunctionUtils()
isQualifiedFunctionName
public static boolean isQualifiedFunctionName(String functionName)
qualifyFunctionName
public static String qualifyFunctionName(String functionName,
String dbName)
splitQualifiedFunctionName
public static String[] splitQualifiedFunctionName(String functionName)
throws HiveException
- Splits a qualified function name into an array containing the database name and function name.
If the name is not qualified, the database name is null.
If there is more than one '.', an exception will be thrown.
- Parameters:
functionName
- Function name, which may or may not be qualified
- Returns:
-
- Throws:
HiveException
getQualifiedFunctionNameParts
public static String[] getQualifiedFunctionNameParts(String name)
throws HiveException
- Throws:
HiveException
getUDFClassType
public static FunctionUtils.UDFClassType getUDFClassType(Class<?> udfClass)
- Determine the UDF class type of the class
- Parameters:
udfClass
-
- Returns:
- UDFClassType enum corresponding to the class type of the UDF
Copyright © 2014 The Apache Software Foundation. All rights reserved.