public class Udf extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject| Constructor and Description |
|---|
Udf() |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Execute UDF
|
String |
getDisplayString(String[] children)
Get the String to be displayed in explain.
|
void |
initExec(GenericUDF.DeferredObject[] arguments)
init exec
|
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize UDF
|
checkArgGroups, checkArgPrimitive, checkArgsSize, close, configure, copyToNewInstance, flip, getArgOrder, getConstantBooleanValue, getConstantIntValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntervalDayTimeValue, getIntervalYearMonthValue, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverterpublic ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
initialize in class GenericUDFarguments - The ObjectInspector for the argumentsUDFArgumentException - Thrown when arguments have wrong types, wrong length, etc.public Object evaluate(GenericUDF.DeferredObject[] arguments) throws HiveException
evaluate 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 void initExec(GenericUDF.DeferredObject[] arguments) throws HiveException
HiveExceptionpublic String getDisplayString(String[] children)
GenericUDFgetDisplayString in class GenericUDFCopyright © 2019 The Apache Software Foundation. All Rights Reserved.