|
||||||||||
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.
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()
|
Class<?> |
getPrimitiveWritableClass()
|
String |
getTypeName()
A String representation of the TypeInfo. |
int |
hashCode()
Generate the hashCode for this TypeInfo. |
void |
setTypeName(String typeName)
|
Methods inherited from class org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveTypeInfo()
Method Detail |
---|
public ObjectInspector.Category getCategory()
getCategory
in class TypeInfo
public PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
public Class<?> getPrimitiveWritableClass()
public Class<?> getPrimitiveJavaClass()
public void setTypeName(String typeName)
public String getTypeName()
TypeInfo
getTypeName
in class TypeInfo
public boolean equals(Object other)
equals
in class TypeInfo
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |