public class CharStringOptionInspector extends AbstractValueInspector implements org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveCharObjectInspector
StringOption
object.Constructor and Description |
---|
CharStringOptionInspector()
Creates a new instance.
|
CharStringOptionInspector(int length)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hive.common.type.HiveChar |
getPrimitiveJavaObject(Object o) |
org.apache.hadoop.hive.serde2.io.HiveCharWritable |
getPrimitiveWritableObject(Object o) |
protected ValueOption<?> |
newObject()
Creates a new instance for supported
ValueOption type. |
boolean |
preferWritable() |
copyObject
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public CharStringOptionInspector()
public CharStringOptionInspector(int length)
length
- character string lengthprotected ValueOption<?> newObject()
AbstractValueInspector
ValueOption
type.newObject
in class AbstractValueInspector
public org.apache.hadoop.hive.common.type.HiveChar getPrimitiveJavaObject(Object o)
getPrimitiveJavaObject
in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveCharObjectInspector
getPrimitiveJavaObject
in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
public org.apache.hadoop.hive.serde2.io.HiveCharWritable getPrimitiveWritableObject(Object o)
getPrimitiveWritableObject
in interface org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveCharObjectInspector
getPrimitiveWritableObject
in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
public boolean preferWritable()
preferWritable
in interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
preferWritable
in class AbstractValueInspector
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.