UserDefinedType¶
UserDefinedType[UserType]
is an extension of the DataType abstraction for user-defined data types.
Contract¶
deserialize¶
deserialize(
datum: Any): UserType
Used when:
UDTConverter
is requested totoScala
Cast
expression is requested tocastToString
BaseScriptTransformationExec
is requested tooutputFieldWriters
serialize¶
serialize(
obj: UserType): Any
Used when:
Row
is requested to toJsonUDTConverter
is requested totoCatalystImpl
sqlType¶
sqlType: DataType
The underlying storage DataType
userClass¶
userClass: Class[UserType]
Implementations¶
PythonUserDefinedType
MatrixUDT
(Spark MLlib)VectorUDT
(Spark MLlib)