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

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.typeinfo.TypeInfo
      extended by org.apache.hadoop.hive.serde2.typeinfo.MapTypeInfo
All Implemented Interfaces:
Serializable

public class MapTypeInfo
extends TypeInfo
implements Serializable

A Map Type has homogeneous keys and homogeneous values. All keys of the Map have the same TypeInfo, which is returned by getMapKeyTypeInfo(); and all values of the Map has the same TypeInfo, which is returned by getMapValueTypeInfo(). Always use the TypeInfoFactory to create new TypeInfo objects, instead of directly creating an instance of this class.

See Also:
Serialized Form

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

Constructor Detail

MapTypeInfo

public MapTypeInfo()
For java serialization use only.

Method Detail

getTypeName

public String getTypeName()
Overrides:
getTypeName in class TypeInfo

setMapKeyTypeInfo

public void setMapKeyTypeInfo(TypeInfo mapKeyTypeInfo)
For java serialization use only.


setMapValueTypeInfo

public void setMapValueTypeInfo(TypeInfo mapValueTypeInfo)
For java serialization use only.


getCategory

public ObjectInspector.Category getCategory()
Overrides:
getCategory in class TypeInfo

getMapKeyTypeInfo

public TypeInfo getMapKeyTypeInfo()
Overrides:
getMapKeyTypeInfo in class TypeInfo

getMapValueTypeInfo

public TypeInfo getMapValueTypeInfo()
Overrides:
getMapValueTypeInfo 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