public abstract class AbstractPrimitiveObjectInspector extends java.lang.Object implements PrimitiveObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
ObjectInspector.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, wait
copyObject, getPrimitiveJavaObject, getPrimitiveWritableObject, preferWritable
protected BaseTypeParams typeParams
protected AbstractPrimitiveObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
public java.lang.Class<?> getJavaPrimitiveClass()
getJavaPrimitiveClass
in interface PrimitiveObjectInspector
public PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
getPrimitiveCategory
in interface PrimitiveObjectInspector
getPrimitiveCategory
in interface PrimitiveTypeSpec
public java.lang.Class<?> getPrimitiveWritableClass()
getPrimitiveWritableClass
in interface PrimitiveObjectInspector
public ObjectInspector.Category getCategory()
getCategory
in interface ObjectInspector
public java.lang.String getTypeName()
getTypeName
in interface ObjectInspector
public BaseTypeParams getTypeParams()
PrimitiveObjectInspector
getTypeParams
in interface PrimitiveObjectInspector
getTypeParams
in interface PrimitiveTypeSpec
public void setTypeParams(BaseTypeParams newParams)
PrimitiveObjectInspector
setTypeParams
in interface PrimitiveObjectInspector
newParams
- type parameters for the typeCopyright © 2012 The Apache Software Foundation