org.apache.hadoop.hive.ql.exec
Class UDFArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.hadoop.hive.ql.metadata.HiveException
              extended by org.apache.hadoop.hive.ql.parse.SemanticException
                  extended by org.apache.hadoop.hive.ql.exec.UDFArgumentException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AmbiguousMethodException, NoMatchingMethodException, UDFArgumentLengthException, UDFArgumentTypeException

public class UDFArgumentException
extends SemanticException

exception class, thrown when udf argument have something wrong.

See Also:
Serialized Form

Constructor Summary
UDFArgumentException()
           
UDFArgumentException(String message)
           
UDFArgumentException(String message, Class<?> funcClass, List<TypeInfo> argTypeInfos, List<Method> methods)
          Constructor.
UDFArgumentException(Throwable cause)
           
 
Method Summary
 List<TypeInfo> getArgTypeList()
           
 Class<?> getFunctionClass()
           
 List<Method> getMethods()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.metadata.HiveException
getCanonicalErrorMsg
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UDFArgumentException

public UDFArgumentException()

UDFArgumentException

public UDFArgumentException(String message)

UDFArgumentException

public UDFArgumentException(Throwable cause)

UDFArgumentException

public UDFArgumentException(String message,
                            Class<?> funcClass,
                            List<TypeInfo> argTypeInfos,
                            List<Method> methods)
Constructor.

Parameters:
funcClass - The UDF or UDAF class.
argTypeInfos - The list of argument types that lead to an ambiguity.
methods - All potential matches.
Method Detail

getFunctionClass

public Class<?> getFunctionClass()

getArgTypeList

public List<TypeInfo> getArgTypeList()

getMethods

public List<Method> getMethods()


Copyright © 2014 The Apache Software Foundation. All rights reserved.