public interface PrimitiveObjectInspector extends ObjectInspector
Modifier and Type | Interface and Description |
---|---|
static class |
PrimitiveObjectInspector.PrimitiveCategory
The primitive types supported by Hive.
|
ObjectInspector.Category
Modifier and Type | Method and Description |
---|---|
Object |
copyObject(Object o)
Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
|
Class<?> |
getJavaPrimitiveClass()
Get the Java Primitive class which is the return type of
getJavaPrimitiveObject().
|
PrimitiveObjectInspector.PrimitiveCategory |
getPrimitiveCategory()
Get the primitive category of the PrimitiveObjectInspector.
|
Object |
getPrimitiveJavaObject(Object o)
Get the Java Primitive object.
|
Class<?> |
getPrimitiveWritableClass()
Get the Primitive Writable class which is the return type of
getPrimitiveWritableObject() and copyToPrimitiveWritableObject().
|
Object |
getPrimitiveWritableObject(Object o)
Return the data in an instance of primitive writable Object.
|
PrimitiveTypeInfo |
getTypeInfo() |
int |
precision()
The precision of the underlying data.
|
boolean |
preferWritable()
Whether the ObjectInspector prefers to return a Primitive Writable Object
instead of a Primitive Java Object.
|
int |
scale()
The scale of the underlying data.
|
getCategory, getTypeName
PrimitiveTypeInfo getTypeInfo()
PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
Class<?> getPrimitiveWritableClass()
Object getPrimitiveWritableObject(Object o)
Class<?> getJavaPrimitiveClass()
Object copyObject(Object o)
boolean preferWritable()
int precision()
int scale()
Copyright © 2017 The Apache Software Foundation. All rights reserved.