public class JavaHiveDecimalObjectInspector extends AbstractPrimitiveJavaObjectInspector implements SettableHiveDecimalObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeInfo
Constructor and Description |
---|
JavaHiveDecimalObjectInspector() |
JavaHiveDecimalObjectInspector(DecimalTypeInfo typeInfo) |
Modifier and Type | Method and Description |
---|---|
Object |
create(byte[] bytes,
int scale) |
Object |
create(org.apache.hadoop.hive.common.type.HiveDecimal t) |
org.apache.hadoop.hive.common.type.HiveDecimal |
getPrimitiveJavaObject(Object o)
Get the Java Primitive object.
|
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable |
getPrimitiveWritableObject(Object o)
Return the data in an instance of primitive writable Object.
|
Object |
set(Object o,
byte[] bytes,
int scale) |
Object |
set(Object o,
org.apache.hadoop.hive.common.type.HiveDecimal t) |
Object |
set(Object o,
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable t) |
copyObject, preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, precision, preferWritable, scale
getCategory, getTypeName
public JavaHiveDecimalObjectInspector()
public JavaHiveDecimalObjectInspector(DecimalTypeInfo typeInfo)
public org.apache.hadoop.hive.serde2.io.HiveDecimalWritable getPrimitiveWritableObject(Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface HiveDecimalObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
public org.apache.hadoop.hive.common.type.HiveDecimal getPrimitiveJavaObject(Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface HiveDecimalObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
in class AbstractPrimitiveJavaObjectInspector
public Object set(Object o, byte[] bytes, int scale)
set
in interface SettableHiveDecimalObjectInspector
public Object set(Object o, org.apache.hadoop.hive.common.type.HiveDecimal t)
set
in interface SettableHiveDecimalObjectInspector
public Object set(Object o, org.apache.hadoop.hive.serde2.io.HiveDecimalWritable t)
set
in interface SettableHiveDecimalObjectInspector
public Object create(byte[] bytes, int scale)
create
in interface SettableHiveDecimalObjectInspector
public Object create(org.apache.hadoop.hive.common.type.HiveDecimal t)
create
in interface SettableHiveDecimalObjectInspector
Copyright © 2017 The Apache Software Foundation. All rights reserved.