public class WritableHiveDecimalObjectInspector extends AbstractPrimitiveWritableObjectInspector implements SettableHiveDecimalObjectInspector
PrimitiveObjectInspector.PrimitiveCategoryObjectInspector.CategorytypeInfo| Constructor and Description |
|---|
WritableHiveDecimalObjectInspector() |
WritableHiveDecimalObjectInspector(DecimalTypeInfo typeInfo) |
| Modifier and Type | Method and Description |
|---|---|
Object |
copyObject(Object o)
Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
|
Object |
create(byte[] bytes,
int scale) |
Object |
create(HiveDecimal t) |
HiveDecimal |
getPrimitiveJavaObject(Object o)
Get the Java Primitive object.
|
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,
HiveDecimal t) |
Object |
set(Object o,
HiveDecimalWritable t) |
preferWritablegetCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scaleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, precision, preferWritable, scalegetCategory, getTypeNamepublic WritableHiveDecimalObjectInspector()
public WritableHiveDecimalObjectInspector(DecimalTypeInfo typeInfo)
public HiveDecimalWritable getPrimitiveWritableObject(Object o)
PrimitiveObjectInspectorgetPrimitiveWritableObject in interface HiveDecimalObjectInspectorgetPrimitiveWritableObject in interface PrimitiveObjectInspectorgetPrimitiveWritableObject in class AbstractPrimitiveWritableObjectInspectorpublic HiveDecimal getPrimitiveJavaObject(Object o)
PrimitiveObjectInspectorgetPrimitiveJavaObject in interface HiveDecimalObjectInspectorgetPrimitiveJavaObject in interface PrimitiveObjectInspectorpublic Object copyObject(Object o)
PrimitiveObjectInspectorcopyObject in interface PrimitiveObjectInspectorpublic Object set(Object o, byte[] bytes, int scale)
set in interface SettableHiveDecimalObjectInspectorpublic Object set(Object o, HiveDecimal t)
set in interface SettableHiveDecimalObjectInspectorpublic Object set(Object o, HiveDecimalWritable t)
set in interface SettableHiveDecimalObjectInspectorpublic Object create(byte[] bytes, int scale)
create in interface SettableHiveDecimalObjectInspectorpublic Object create(HiveDecimal t)
create in interface SettableHiveDecimalObjectInspectorCopyright © 2017 The Apache Software Foundation. All rights reserved.