public class DecimalOptionInspector extends AbstractValueInspector implements org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
DecimalOption object.| Constructor and Description |
|---|
DecimalOptionInspector()
Creates a new instance.
|
DecimalOptionInspector(int precision,
int scale)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hive.common.type.HiveDecimal |
getPrimitiveJavaObject(Object o) |
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable |
getPrimitiveWritableObject(Object o) |
protected ValueOption<?> |
newObject()
Creates a new instance for supported
ValueOption type. |
copyObject, preferWritablegetCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scaleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DecimalOptionInspector()
public DecimalOptionInspector(int precision,
int scale)
precision - the decimal precisionscale - the decimal scaleprotected ValueOption<?> newObject()
AbstractValueInspectorValueOption type.newObject in class AbstractValueInspectorpublic org.apache.hadoop.hive.common.type.HiveDecimal getPrimitiveJavaObject(Object o)
getPrimitiveJavaObject in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspectorgetPrimitiveJavaObject in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspectorpublic org.apache.hadoop.hive.serde2.io.HiveDecimalWritable getPrimitiveWritableObject(Object o)
getPrimitiveWritableObject in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspectorgetPrimitiveWritableObject in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspectorCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.