org.apache.hadoop.hive.serde2.typeinfo
Class PrimitiveTypeInfo

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.typeinfo.TypeInfo
      extended by 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

Constructor Summary
PrimitiveTypeInfo()
          For java serialization use only.
 
Method Summary
 boolean equals(Object other)
           
 ObjectInspector.Category getCategory()
           
 Class<?> getPrimitiveClass()
           
 String getTypeName()
           
 int hashCode()
           
 void setPrimitiveClass(Class<?> primitiveClass)
          For java serialization use only.
 
Methods inherited from class org.apache.hadoop.hive.serde2.typeinfo.TypeInfo
getAllStructFieldNames, getAllStructFieldTypeInfos, getListElementTypeInfo, getMapKeyTypeInfo, getMapValueTypeInfo, getStructFieldTypeInfo, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrimitiveTypeInfo

public PrimitiveTypeInfo()
For java serialization use only.

Method Detail

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