public class WritableHiveVarcharObjectInspector extends AbstractPrimitiveWritableObjectInspector implements SettableHiveVarcharObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.Category
typeParams
Constructor and Description |
---|
WritableHiveVarcharObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
copyObject(java.lang.Object o)
Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
|
java.lang.Object |
create(HiveVarchar value) |
int |
getMaxLength() |
HiveVarchar |
getPrimitiveJavaObject(java.lang.Object o)
Get the Java Primitive object.
|
HiveVarcharWritable |
getPrimitiveWritableObject(java.lang.Object o)
Return the data in an instance of primitive writable Object.
|
java.lang.Object |
set(java.lang.Object o,
HiveVarchar value) |
java.lang.Object |
set(java.lang.Object o,
java.lang.String value) |
preferWritable
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName, getTypeParams, setTypeParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
getCategory, getTypeName
public WritableHiveVarcharObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
public HiveVarchar getPrimitiveJavaObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveJavaObject
in interface HiveVarcharObjectInspector
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
public HiveVarcharWritable getPrimitiveWritableObject(java.lang.Object o)
PrimitiveObjectInspector
getPrimitiveWritableObject
in interface HiveVarcharObjectInspector
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
getPrimitiveWritableObject
in class AbstractPrimitiveWritableObjectInspector
public java.lang.Object copyObject(java.lang.Object o)
PrimitiveObjectInspector
copyObject
in interface PrimitiveObjectInspector
public java.lang.Object set(java.lang.Object o, HiveVarchar value)
set
in interface SettableHiveVarcharObjectInspector
public java.lang.Object set(java.lang.Object o, java.lang.String value)
set
in interface SettableHiveVarcharObjectInspector
public java.lang.Object create(HiveVarchar value)
create
in interface SettableHiveVarcharObjectInspector
public int getMaxLength()
Copyright © 2012 The Apache Software Foundation