public class GenericUDFToVarchar extends GenericUDF implements SettableUDF, java.io.Serializable
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject| Constructor and Description |
|---|
GenericUDFToVarchar() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
java.lang.String |
getDisplayString(java.lang.String[] children)
Get the String to be displayed in explain.
|
java.lang.Object |
getParams() |
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
void |
setParams(java.lang.Object typeParams)
Provide varchar type parameters for the output object inspector.
|
close, configure, getRequiredFiles, getRequiredJars, initializeAndFoldConstantspublic ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDFinitialize in class GenericUDFarguments - The ObjectInspector for the argumentsUDFArgumentException - Thrown when arguments have wrong types, wrong length, etc.public java.lang.Object evaluate(GenericUDF.DeferredObject[] arguments) throws HiveException
GenericUDFevaluate in class GenericUDFarguments - The arguments as DeferedObject, use DeferedObject.get() to get the
actual argument Object. The Objects can be inspected by the
ObjectInspectors passed in the initialize call.HiveExceptionpublic java.lang.String getDisplayString(java.lang.String[] children)
GenericUDFgetDisplayString in class GenericUDFpublic void setParams(java.lang.Object typeParams)
throws UDFArgumentException
setParams in interface SettableUDFtypeParams - UDF-specific data to add to the UDFUDFArgumentExceptionpublic java.lang.Object getParams()
getParams in interface SettableUDFCopyright © 2012 The Apache Software Foundation