org.apache.hadoop.hive.serde2.typeinfo
Class StructTypeInfo
java.lang.Object
org.apache.hadoop.hive.serde2.typeinfo.TypeInfo
org.apache.hadoop.hive.serde2.typeinfo.StructTypeInfo
- All Implemented Interfaces:
- Serializable
public class StructTypeInfo
- extends TypeInfo
- implements Serializable
StructTypeInfo represents the TypeInfo of a struct.
A struct contains one or more fields each of which has a unique name
and its own TypeInfo. Different fields 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.
- See Also:
- Serialized Form
StructTypeInfo
public StructTypeInfo()
- For java serialization use only.
getTypeName
public String getTypeName()
- Overrides:
getTypeName
in class TypeInfo
setAllStructFieldNames
public void setAllStructFieldNames(ArrayList<String> allStructFieldNames)
- For java serialization use only.
setAllStructFieldTypeInfos
public void setAllStructFieldTypeInfos(ArrayList<TypeInfo> allStructFieldTypeInfos)
- For java serialization use only.
getCategory
public ObjectInspector.Category getCategory()
- Overrides:
getCategory
in class TypeInfo
getAllStructFieldNames
public List<String> getAllStructFieldNames()
- Overrides:
getAllStructFieldNames
in class TypeInfo
getAllStructFieldTypeInfos
public List<TypeInfo> getAllStructFieldTypeInfos()
- Overrides:
getAllStructFieldTypeInfos
in class TypeInfo
getStructFieldTypeInfo
public TypeInfo getStructFieldTypeInfo(String field)
- Overrides:
getStructFieldTypeInfo
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