public abstract class GenericUDFFloorCeilBase extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject| Modifier and Type | Field and Description |
|---|---|
protected HiveDecimalWritable |
decimalWritable |
protected org.apache.hadoop.io.LongWritable |
longWritable |
protected String |
opDisplayName |
| Constructor and Description |
|---|
GenericUDFFloorCeilBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.hadoop.io.LongWritable |
evaluate(DoubleWritable input) |
Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
protected abstract HiveDecimalWritable |
evaluate(HiveDecimalWritable input) |
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, flip, getArgOrder, getConstantIntValue, getConstantLongValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverterprotected String opDisplayName
protected org.apache.hadoop.io.LongWritable longWritable
protected HiveDecimalWritable decimalWritable
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 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.HiveExceptionprotected abstract org.apache.hadoop.io.LongWritable evaluate(DoubleWritable input)
protected abstract HiveDecimalWritable evaluate(HiveDecimalWritable input)
public String getDisplayString(String[] children)
GenericUDFgetDisplayString in class GenericUDFCopyright © 2017 The Apache Software Foundation. All rights reserved.