public interface StructType extends ObjectType
Struct
.DataSerializable.Replaceable
Modifier and Type | Method and Description |
---|---|
int |
getFieldIndex(String fieldName)
Returns the index of the field with the given name in this
StructType . |
String[] |
getFieldNames()
Get the names of the fields for this struct
|
ObjectType[] |
getFieldTypes()
The the types of the fields for this struct
|
getSimpleClassName, isCollectionType, isMapType, isStructType, resolveClass
fromData, toData
ObjectType[] getFieldTypes()
String[] getFieldNames()
int getFieldIndex(String fieldName)
StructType
.fieldName
- the name of the fieldStructType
IllegalArgumentException
- If this StructType
does not contain a field named
fieldName
.