public class PrimitiveTypeInfo extends TypeInfo implements java.io.Serializable, PrimitiveTypeSpec
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
typeName |
protected BaseTypeParams |
typeParams |
Constructor and Description |
---|
PrimitiveTypeInfo()
For java serialization use only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Compare if 2 TypeInfos are the same.
|
ObjectInspector.Category |
getCategory()
Returns the category of this TypeInfo.
|
PrimitiveObjectInspector.PrimitiveCategory |
getPrimitiveCategory() |
java.lang.Class<?> |
getPrimitiveJavaClass() |
PrimitiveObjectInspectorUtils.PrimitiveTypeEntry |
getPrimitiveTypeEntry() |
java.lang.Class<?> |
getPrimitiveWritableClass() |
java.lang.String |
getTypeName()
A String representation of the TypeInfo.
|
BaseTypeParams |
getTypeParams()
If the type has type parameters (such as varchar length, or decimal precision/scale),
then return the parameters for the type.
|
int |
hashCode()
Generate the hashCode for this TypeInfo.
|
void |
setTypeName(java.lang.String typeName) |
void |
setTypeParams(BaseTypeParams typeParams)
Set the type parameters for the type.
|
java.lang.String |
toString() |
getQualifiedName
protected java.lang.String typeName
protected BaseTypeParams typeParams
public ObjectInspector.Category getCategory()
getCategory
in class TypeInfo
public PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
getPrimitiveCategory
in interface PrimitiveTypeSpec
public java.lang.Class<?> getPrimitiveWritableClass()
public java.lang.Class<?> getPrimitiveJavaClass()
public void setTypeName(java.lang.String typeName)
public java.lang.String getTypeName()
TypeInfo
getTypeName
in class TypeInfo
public BaseTypeParams getTypeParams()
getTypeParams
in interface PrimitiveTypeSpec
public void setTypeParams(BaseTypeParams typeParams)
typeParams
- type parameters for the typepublic PrimitiveObjectInspectorUtils.PrimitiveTypeEntry getPrimitiveTypeEntry()
public boolean equals(java.lang.Object other)
public int hashCode()
Copyright © 2012 The Apache Software Foundation