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:
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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector

    org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category

    Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector

    org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory
  • Field Summary

    Fields inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector

    typeInfo
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    get(int precision, int scale)
     
    org.apache.hadoop.hive.common.type.HiveDecimal
     
    org.apache.hadoop.hive.serde2.io.HiveDecimalWritable
     

    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

    Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector

    getCategory, getTypeName

    Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector

    getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, precision, preferWritable, scale
  • Method Details

    • get

      public static IcebergDecimalObjectInspector get(int precision, int scale)
    • getPrimitiveJavaObject

      public org.apache.hadoop.hive.common.type.HiveDecimal getPrimitiveJavaObject(Object o)
      Specified by:
      getPrimitiveJavaObject in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
      Specified by:
      getPrimitiveJavaObject in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
      Overrides:
      getPrimitiveJavaObject in class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
    • getPrimitiveWritableObject

      public org.apache.hadoop.hive.serde2.io.HiveDecimalWritable getPrimitiveWritableObject(Object o)
      Specified by:
      getPrimitiveWritableObject in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
      Specified by:
      getPrimitiveWritableObject in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
    • copyObject

      public Object copyObject(Object o)
      Specified by:
      copyObject in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
      Overrides:
      copyObject in class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
    • convert

      public BigDecimal convert(Object o)
      Specified by:
      convert in interface WriteObjectInspector