|
||||||||||
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.UnionTypeInfo
public class UnionTypeInfo
UnionTypeInfo represents the TypeInfo of an union. A union holds only one field of the specified fields at any point of time. The fields, a Union can hold, can have the same or different TypeInfo. Always use the TypeInfoFactory to create new TypeInfo objects, instead of directly creating an instance of this class.
Constructor Summary | |
---|---|
UnionTypeInfo()
For java serialization use only. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
List<TypeInfo> |
getAllUnionObjectTypeInfos()
|
ObjectInspector.Category |
getCategory()
The Category of this TypeInfo. |
String |
getTypeName()
A String representation of the TypeInfo. |
int |
hashCode()
|
void |
setAllUnionObjectTypeInfos(List<TypeInfo> allUnionObjectTypeInfos)
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 UnionTypeInfo()
Method Detail |
---|
public String getTypeName()
TypeInfo
getTypeName
in class TypeInfo
public void setAllUnionObjectTypeInfos(List<TypeInfo> allUnionObjectTypeInfos)
public ObjectInspector.Category getCategory()
TypeInfo
getCategory
in class TypeInfo
public List<TypeInfo> getAllUnionObjectTypeInfos()
public boolean equals(Object other)
equals
in class TypeInfo
public int hashCode()
hashCode
in class TypeInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |