public abstract class GenericUDFBaseUnary extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
Modifier and Type | Field and Description |
---|---|
protected ByteWritable |
byteWritable |
protected ObjectInspectorConverters.Converter |
converter |
protected 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, getConstantIntValue, getConstantLongValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverter
protected 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 HiveDecimalWritable decimalWritable
protected HiveIntervalYearMonthWritable intervalYearMonthWritable
protected HiveIntervalDayTimeWritable intervalDayTimeWritable
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDF
initialize
in class GenericUDF
arguments
- The ObjectInspector for the argumentsUDFArgumentException
- Thrown when arguments have wrong types, wrong length, etc.public String getDisplayString(String[] children)
GenericUDF
getDisplayString
in class GenericUDF
Copyright © 2017 The Apache Software Foundation. All rights reserved.