public abstract class AbstractPrimitiveObjectInspector extends java.lang.Object implements PrimitiveObjectInspector
PrimitiveObjectInspector.PrimitiveCategoryObjectInspector.Category| Modifier and Type | Field and Description |
|---|---|
protected BaseTypeParams |
typeParams |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPrimitiveObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
Construct a AbstractPrimitiveObjectInspector.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectInspector.Category |
getCategory()
Return the associated category this primitive ObjectInspector.
|
java.lang.Class<?> |
getJavaPrimitiveClass()
Return the associated Java primitive class for this primitive
ObjectInspector.
|
PrimitiveObjectInspector.PrimitiveCategory |
getPrimitiveCategory()
Return the associated primitive category for this primitive
ObjectInspector.
|
java.lang.Class<?> |
getPrimitiveWritableClass()
Return the associated primitive Writable class for this primitive
ObjectInspector.
|
java.lang.String |
getTypeName()
Return the type name for this primitive ObjectInspector.
|
BaseTypeParams |
getTypeParams()
If the type has type parameters (such as varchar length, or decimal precision/scale),
then return the parameters for the type.
|
void |
setTypeParams(BaseTypeParams newParams)
Set the type parameters for the type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyObject, getPrimitiveJavaObject, getPrimitiveWritableObject, preferWritableprotected BaseTypeParams typeParams
protected AbstractPrimitiveObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
public java.lang.Class<?> getJavaPrimitiveClass()
getJavaPrimitiveClass in interface PrimitiveObjectInspectorpublic PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
getPrimitiveCategory in interface PrimitiveObjectInspectorgetPrimitiveCategory in interface PrimitiveTypeSpecpublic java.lang.Class<?> getPrimitiveWritableClass()
getPrimitiveWritableClass in interface PrimitiveObjectInspectorpublic ObjectInspector.Category getCategory()
getCategory in interface ObjectInspectorpublic java.lang.String getTypeName()
getTypeName in interface ObjectInspectorpublic BaseTypeParams getTypeParams()
PrimitiveObjectInspectorgetTypeParams in interface PrimitiveObjectInspectorgetTypeParams in interface PrimitiveTypeSpecpublic void setTypeParams(BaseTypeParams newParams)
PrimitiveObjectInspectorsetTypeParams in interface PrimitiveObjectInspectornewParams - type parameters for the typeCopyright © 2012 The Apache Software Foundation