|
||||||||||
| 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.MapTypeInfo
public final class MapTypeInfo
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.
| Constructor Summary | |
|---|---|
MapTypeInfo()
For java serialization use only. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
ObjectInspector.Category |
getCategory()
The Category of this TypeInfo. |
TypeInfo |
getMapKeyTypeInfo()
|
TypeInfo |
getMapValueTypeInfo()
|
String |
getTypeName()
A String representation of the TypeInfo. |
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 |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapTypeInfo()
| Method Detail |
|---|
public String getTypeName()
TypeInfo
getTypeName in class TypeInfopublic void setMapKeyTypeInfo(TypeInfo mapKeyTypeInfo)
public void setMapValueTypeInfo(TypeInfo mapValueTypeInfo)
public ObjectInspector.Category getCategory()
TypeInfo
getCategory in class TypeInfopublic TypeInfo getMapKeyTypeInfo()
public TypeInfo getMapValueTypeInfo()
public boolean equals(Object other)
equals in class TypeInfopublic int hashCode()
hashCode in class TypeInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||