public abstract class GenericUDFBaseUnary extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject| Modifier and Type | Field and Description |
|---|---|
protected ByteWritable |
byteWritable |
protected ObjectInspectorConverters.Converter |
converter |
protected org.apache.hadoop.hive.serde2.io.HiveDecimalWritable |
decimalWritable |
protected DoubleWritable |
doubleWritable |
protected org.apache.hadoop.io.FloatWritable |
floatWritable |
protected HiveIntervalDayTimeWritable |
intervalDayTimeWritable |
protected HiveIntervalYearMonthWritable |
intervalYearMonthWritable |
protected org.apache.hadoop.io.IntWritable |
intWritable |
protected org.apache.hadoop.io.LongWritable |
longWritable |
protected String |
opDisplayName |
protected String |
opName |
protected PrimitiveObjectInspector |
resultOI |
protected ShortWritable |
shortWritable |
| Constructor and Description |
|---|
GenericUDFBaseUnary() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayString(String[] children)
Get the String to be displayed in explain.
|
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
checkArgGroups, checkArgPrimitive, checkArgsSize, close, configure, copyToNewInstance, evaluate, 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, obtainTimestampConverterprotected String opName
protected String opDisplayName
protected transient PrimitiveObjectInspector resultOI
protected transient ObjectInspectorConverters.Converter converter
protected ByteWritable byteWritable
protected ShortWritable shortWritable
protected org.apache.hadoop.io.IntWritable intWritable
protected org.apache.hadoop.io.LongWritable longWritable
protected org.apache.hadoop.io.FloatWritable floatWritable
protected DoubleWritable doubleWritable
protected org.apache.hadoop.hive.serde2.io.HiveDecimalWritable decimalWritable
protected HiveIntervalYearMonthWritable intervalYearMonthWritable
protected HiveIntervalDayTimeWritable intervalDayTimeWritable
public 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 String getDisplayString(String[] children)
GenericUDFgetDisplayString in class GenericUDFCopyright © 2019 The Apache Software Foundation. All Rights Reserved.