Class IcebergDecimalObjectInspector
- java.lang.Object
-
- org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
-
- org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
-
- org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDecimalObjectInspector
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
,org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
,org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
,WriteObjectInspector
public final class IcebergDecimalObjectInspector extends org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector implements org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector, WriteObjectInspector
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
convert(java.lang.Object o)
java.lang.Object
copyObject(java.lang.Object o)
static IcebergDecimalObjectInspector
get(int precision, int scale)
org.apache.hadoop.hive.common.type.HiveDecimal
getPrimitiveJavaObject(java.lang.Object o)
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
getPrimitiveWritableObject(java.lang.Object o)
-
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
preferWritable
-
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
get
public static IcebergDecimalObjectInspector get(int precision, int scale)
-
getPrimitiveJavaObject
public org.apache.hadoop.hive.common.type.HiveDecimal getPrimitiveJavaObject(java.lang.Object o)
- Specified by:
getPrimitiveJavaObject
in interfaceorg.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
- Specified by:
getPrimitiveJavaObject
in interfaceorg.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
- Overrides:
getPrimitiveJavaObject
in classorg.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
-
getPrimitiveWritableObject
public org.apache.hadoop.hive.serde2.io.HiveDecimalWritable getPrimitiveWritableObject(java.lang.Object o)
- Specified by:
getPrimitiveWritableObject
in interfaceorg.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
- Specified by:
getPrimitiveWritableObject
in interfaceorg.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
-
copyObject
public java.lang.Object copyObject(java.lang.Object o)
- Specified by:
copyObject
in interfaceorg.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
- Overrides:
copyObject
in classorg.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
-
convert
public java.math.BigDecimal convert(java.lang.Object o)
- Specified by:
convert
in interfaceWriteObjectInspector
-
-