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, preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DecimalOptionInspector()
public DecimalOptionInspector(int precision, int scale)
precision
- the decimal precisionscale
- the decimal scaleprotected ValueOption<?> newObject()
AbstractValueInspector
ValueOption
type.newObject
in class AbstractValueInspector
public org.apache.hadoop.hive.common.type.HiveDecimal getPrimitiveJavaObject(Object o)
getPrimitiveJavaObject
in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
getPrimitiveJavaObject
in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
public org.apache.hadoop.hive.serde2.io.HiveDecimalWritable getPrimitiveWritableObject(Object o)
getPrimitiveWritableObject
in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector
getPrimitiveWritableObject
in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.