public class GenericUDFOPDivide extends GenericUDFBaseNumeric
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObjectansiSqlArithmetic, byteWritable, confLookupNeeded, converterLeft, converterRight, decimalWritable, doubleWritable, floatWritable, intWritable, leftOI, longWritable, resultOI, rightOI, shortWritableopDisplayName, opName| Constructor and Description |
|---|
GenericUDFOPDivide() |
| Modifier and Type | Method and Description |
|---|---|
protected PrimitiveTypeInfo |
deriveResultApproxTypeInfo()
Default implementation for getting the approximate type info for the operator result.
|
protected DecimalTypeInfo |
deriveResultDecimalTypeInfo(int prec1,
int scale1,
int prec2,
int scale2)
A balanced way to determine the precision/scale of decimal division result.
|
protected PrimitiveTypeInfo |
deriveResultExactTypeInfo()
Default implementation for getting the exact type info for the operator result.
|
protected PrimitiveTypeInfo |
deriveResultExactTypeInfoAnsiSql() |
protected PrimitiveTypeInfo |
deriveResultExactTypeInfoBackwardsCompat() |
protected DoubleWritable |
evaluate(DoubleWritable left,
DoubleWritable right) |
protected HiveDecimalWritable |
evaluate(HiveDecimal left,
HiveDecimal right) |
copyToNewInstance, deriveResultDecimalTypeInfo, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, initialize, isAnsiSqlArithmetic, isConfLookupNeeded, setAnsiSqlArithmetic, setConfLookupNeededgetDisplayStringcheckArgGroups, checkArgPrimitive, checkArgsSize, close, configure, 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 PrimitiveTypeInfo deriveResultExactTypeInfo()
GenericUDFBaseNumericderiveResultExactTypeInfo in class GenericUDFBaseNumericprotected PrimitiveTypeInfo deriveResultExactTypeInfoAnsiSql()
protected PrimitiveTypeInfo deriveResultExactTypeInfoBackwardsCompat()
protected PrimitiveTypeInfo deriveResultApproxTypeInfo()
GenericUDFBaseNumericderiveResultApproxTypeInfo in class GenericUDFBaseNumericprotected DoubleWritable evaluate(DoubleWritable left, DoubleWritable right)
evaluate in class GenericUDFBaseNumericprotected HiveDecimalWritable evaluate(HiveDecimal left, HiveDecimal right)
evaluate in class GenericUDFBaseNumericprotected DecimalTypeInfo deriveResultDecimalTypeInfo(int prec1, int scale1, int prec2, int scale2)
deriveResultDecimalTypeInfo in class GenericUDFBaseNumericCopyright © 2017 The Apache Software Foundation. All rights reserved.