public class GenericUDFOPDivide extends GenericUDFBaseNumeric
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
ansiSqlArithmetic, byteWritable, confLookupNeeded, converterLeft, converterRight, decimalWritable, doubleWritable, floatWritable, intWritable, leftOI, longWritable, resultOI, rightOI, shortWritable
opDisplayName, 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, setConfLookupNeeded
getDisplayString
checkArgGroups, 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, obtainTimestampConverter
protected PrimitiveTypeInfo deriveResultExactTypeInfo()
GenericUDFBaseNumeric
deriveResultExactTypeInfo
in class GenericUDFBaseNumeric
protected PrimitiveTypeInfo deriveResultExactTypeInfoAnsiSql()
protected PrimitiveTypeInfo deriveResultExactTypeInfoBackwardsCompat()
protected PrimitiveTypeInfo deriveResultApproxTypeInfo()
GenericUDFBaseNumeric
deriveResultApproxTypeInfo
in class GenericUDFBaseNumeric
protected DoubleWritable evaluate(DoubleWritable left, DoubleWritable right)
evaluate
in class GenericUDFBaseNumeric
protected HiveDecimalWritable evaluate(HiveDecimal left, HiveDecimal right)
evaluate
in class GenericUDFBaseNumeric
protected DecimalTypeInfo deriveResultDecimalTypeInfo(int prec1, int scale1, int prec2, int scale2)
deriveResultDecimalTypeInfo
in class GenericUDFBaseNumeric
Copyright © 2017 The Apache Software Foundation. All rights reserved.