org.apache.hadoop.hive.serde2.typeinfo
Class PrimitiveTypeInfo
java.lang.Object
org.apache.hadoop.hive.serde2.typeinfo.TypeInfo
org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo
- All Implemented Interfaces:
- Serializable
public class PrimitiveTypeInfo
- extends TypeInfo
- implements Serializable
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.
- See Also:
- Serialized Form
PrimitiveTypeInfo
public PrimitiveTypeInfo()
- For java serialization use only.
getTypeName
public String getTypeName()
- Overrides:
getTypeName
in class TypeInfo
setPrimitiveClass
public void setPrimitiveClass(Class<?> primitiveClass)
- For java serialization use only.
getCategory
public ObjectInspector.Category getCategory()
- Overrides:
getCategory
in class TypeInfo
getPrimitiveClass
public Class<?> getPrimitiveClass()
- Overrides:
getPrimitiveClass
in class TypeInfo
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2009 The Apache Software Foundation