|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
public abstract class AbstractPrimitiveObjectInspector
An AbstractPrimitiveObjectInspector is based on ObjectInspectorUtils.PrimitiveTypeEntry.
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 | |
---|---|
protected BaseTypeParams |
typeParams
|
Constructor Summary | |
---|---|
protected |
AbstractPrimitiveObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
Construct a AbstractPrimitiveObjectInspector. |
Method Summary | |
---|---|
ObjectInspector.Category |
getCategory()
Return the associated category this primitive ObjectInspector. |
Class<?> |
getJavaPrimitiveClass()
Return the associated Java primitive class for this primitive ObjectInspector. |
PrimitiveObjectInspector.PrimitiveCategory |
getPrimitiveCategory()
Return the associated primitive category for this primitive ObjectInspector. |
Class<?> |
getPrimitiveWritableClass()
Return the associated primitive Writable class for this primitive ObjectInspector. |
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. |
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, getPrimitiveJavaObject, getPrimitiveWritableObject, preferWritable |
Field Detail |
---|
protected BaseTypeParams typeParams
Constructor Detail |
---|
protected AbstractPrimitiveObjectInspector(PrimitiveObjectInspectorUtils.PrimitiveTypeEntry typeEntry)
Method Detail |
---|
public Class<?> getJavaPrimitiveClass()
getJavaPrimitiveClass
in interface PrimitiveObjectInspector
public PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
getPrimitiveCategory
in interface PrimitiveObjectInspector
getPrimitiveCategory
in interface PrimitiveTypeSpec
public Class<?> getPrimitiveWritableClass()
getPrimitiveWritableClass
in interface PrimitiveObjectInspector
public ObjectInspector.Category getCategory()
getCategory
in interface ObjectInspector
public 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 type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |