org.apache.hadoop.hive.serde2.objectinspector.primitive
Class JavaHiveVarcharObjectInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
      extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
          extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaHiveVarcharObjectInspector
All Implemented Interfaces:
Cloneable, ObjectInspector, HiveVarcharObjectInspector, SettableHiveVarcharObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec

public class JavaHiveVarcharObjectInspector
extends AbstractPrimitiveJavaObjectInspector
implements SettableHiveVarcharObjectInspector


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
typeParams
 
Constructor Summary
JavaHiveVarcharObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
           
 
Method Summary
 Object create(HiveVarchar value)
           
 int getMaxLength()
           
 HiveVarchar getPrimitiveJavaObject(Object o)
          Get the Java Primitive object.
 HiveVarcharWritable getPrimitiveWritableObject(Object o)
          Return the data in an instance of primitive writable Object.
 Object set(Object o, HiveVarchar value)
           
 Object set(Object o, String value)
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
copyObject, preferWritable
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeName, getTypeParams, setTypeParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Constructor Detail

JavaHiveVarcharObjectInspector

public JavaHiveVarcharObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
Method Detail

getPrimitiveJavaObject

public HiveVarchar getPrimitiveJavaObject(Object o)
Description copied from interface: PrimitiveObjectInspector
Get the Java Primitive object.

Specified by:
getPrimitiveJavaObject in interface HiveVarcharObjectInspector
Specified by:
getPrimitiveJavaObject in interface PrimitiveObjectInspector
Overrides:
getPrimitiveJavaObject in class AbstractPrimitiveJavaObjectInspector

getPrimitiveWritableObject

public HiveVarcharWritable getPrimitiveWritableObject(Object o)
Description copied from interface: PrimitiveObjectInspector
Return the data in an instance of primitive writable Object. If the Object is already a primitive writable Object, just return o.

Specified by:
getPrimitiveWritableObject in interface HiveVarcharObjectInspector
Specified by:
getPrimitiveWritableObject in interface PrimitiveObjectInspector

set

public Object set(Object o,
                  HiveVarchar value)
Specified by:
set in interface SettableHiveVarcharObjectInspector

set

public Object set(Object o,
                  String value)
Specified by:
set in interface SettableHiveVarcharObjectInspector

create

public Object create(HiveVarchar value)
Specified by:
create in interface SettableHiveVarcharObjectInspector

getMaxLength

public int getMaxLength()


Copyright © 2012 The Apache Software Foundation