public class JavaHiveDecimalObjectInspector extends AbstractPrimitiveJavaObjectInspector implements SettableHiveDecimalObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeParams
Modifier | Constructor and Description |
---|---|
protected |
JavaHiveDecimalObjectInspector() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(byte[] bytes,
int scale) |
java.lang.Object |
create(HiveDecimal t) |
HiveDecimal |
getPrimitiveJavaObject(java.lang.Object o)
Get the Java Primitive object.
|
HiveDecimalWritable |
getPrimitiveWritableObject(java.lang.Object o)
Return the data in an instance of primitive writable Object.
|
java.lang.Object |
set(java.lang.Object o,
byte[] bytes,
int scale) |
java.lang.Object |
set(java.lang.Object o,
HiveDecimal t) |
java.lang.Object |
set(java.lang.Object o,
HiveDecimalWritable t) |
copyObject, preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName, getTypeParams, setTypeParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
getCategory, getTypeName
public HiveDecimalWritable getPrimitiveWritableObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface HiveDecimalObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
public HiveDecimal getPrimitiveJavaObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface HiveDecimalObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
in class AbstractPrimitiveJavaObjectInspector
public java.lang.Object set(java.lang.Object o, byte[] bytes, int scale)
set
in interface SettableHiveDecimalObjectInspector
public java.lang.Object set(java.lang.Object o, HiveDecimal t)
set
in interface SettableHiveDecimalObjectInspector
public java.lang.Object set(java.lang.Object o, HiveDecimalWritable t)
set
in interface SettableHiveDecimalObjectInspector
public java.lang.Object create(byte[] bytes, int scale)
create
in interface SettableHiveDecimalObjectInspector
public java.lang.Object create(HiveDecimal t)
create
in interface SettableHiveDecimalObjectInspector
Copyright © 2012 The Apache Software Foundation