public interface PrimitiveObjectInspector extends ObjectInspector, PrimitiveTypeSpec
Modifier and Type | Interface and Description |
---|---|
static class |
PrimitiveObjectInspector.PrimitiveCategory
The primitive types supported by Hive.
|
ObjectInspector.Category
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.Class<?> |
getJavaPrimitiveClass()
Get the Java Primitive class which is the return type of
getJavaPrimitiveObject().
|
PrimitiveObjectInspector.PrimitiveCategory |
getPrimitiveCategory()
Get the primitive category of the PrimitiveObjectInspector.
|
java.lang.Object |
getPrimitiveJavaObject(java.lang.Object o)
Get the Java Primitive object.
|
java.lang.Class<?> |
getPrimitiveWritableClass()
Get the Primitive Writable class which is the return type of
getPrimitiveWritableObject() and copyToPrimitiveWritableObject().
|
java.lang.Object |
getPrimitiveWritableObject(java.lang.Object o)
Return the data in an instance of primitive writable Object.
|
BaseTypeParams |
getTypeParams()
If the type has type parameters (such as varchar length, or decimal precision/scale),
then return the parameters for the type.
|
boolean |
preferWritable()
Whether the ObjectInspector prefers to return a Primitive Writable Object
instead of a Primitive Java Object.
|
void |
setTypeParams(BaseTypeParams newParams)
Set the type parameters for the type.
|
getCategory, getTypeName
PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
getPrimitiveCategory
in interface PrimitiveTypeSpec
java.lang.Class<?> getPrimitiveWritableClass()
java.lang.Object getPrimitiveWritableObject(java.lang.Object o)
java.lang.Class<?> getJavaPrimitiveClass()
java.lang.Object getPrimitiveJavaObject(java.lang.Object o)
java.lang.Object copyObject(java.lang.Object o)
boolean preferWritable()
BaseTypeParams getTypeParams()
getTypeParams
in interface PrimitiveTypeSpec
void setTypeParams(BaseTypeParams newParams)
newParams
- type parameters for the typeCopyright © 2012 The Apache Software Foundation