|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.typeinfo.TypeInfo
org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo
public class PrimitiveTypeInfo
There are limited number of Primitive Types. All Primitive Types are defined by TypeInfoFactory.isPrimitiveClass(). Always use the TypeInfoFactory to create new TypeInfo objects, instead of directly creating an instance of this class.
Field Summary | |
---|---|
protected String |
typeName
|
protected BaseTypeParams |
typeParams
|
Constructor Summary | |
---|---|
PrimitiveTypeInfo()
For java serialization use only. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Compare if 2 TypeInfos are the same. |
ObjectInspector.Category |
getCategory()
Returns the category of this TypeInfo. |
PrimitiveObjectInspector.PrimitiveCategory |
getPrimitiveCategory()
|
Class<?> |
getPrimitiveJavaClass()
|
PrimitiveObjectInspectorUtils.PrimitiveTypeEntry |
getPrimitiveTypeEntry()
|
Class<?> |
getPrimitiveWritableClass()
|
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(String typeName)
|
void |
setTypeParams(BaseTypeParams typeParams)
Set the type parameters for the type. |
String |
toString()
|
Methods inherited from class org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
---|
getQualifiedName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String typeName
protected BaseTypeParams typeParams
Constructor Detail |
---|
public PrimitiveTypeInfo()
Method Detail |
---|
public ObjectInspector.Category getCategory()
getCategory
in class TypeInfo
public PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
getPrimitiveCategory
in interface PrimitiveTypeSpec
public Class<?> getPrimitiveWritableClass()
public Class<?> getPrimitiveJavaClass()
public void setTypeName(String typeName)
public 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(Object other)
equals
in class TypeInfo
public int hashCode()
hashCode
in class TypeInfo
public String toString()
toString
in class TypeInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |