public class ExamplePointUDT extends UserDefinedType<ExamplePoint>
ExamplePoint.| Constructor and Description |
|---|
ExamplePointUDT() |
| Modifier and Type | Method and Description |
|---|---|
ExamplePointUDT |
asNullable()
For UDT, asNullable will not change the nullability of its internal sqlType and just returns
itself.
|
ExamplePoint |
deserialize(Object datum)
Convert a SQL datum to the user type
|
String |
pyUDT()
Paired Python UDT class, if exists.
|
scala.collection.Seq<Object> |
serialize(Object obj)
Convert the user type to a SQL datum
|
DataType |
sqlType()
Underlying storage type for this UDT
|
Class<ExamplePoint> |
userClass()
Class object for the UserType
|
defaultSize, jsonValueequalsIgnoreCompatibleNullability, equalsIgnoreNullability, fromCaseClassString, fromJson, isPrimitive, json, prettyJson, sameType, simpleString, typeName, unapplypublic DataType sqlType()
UserDefinedTypesqlType in class UserDefinedType<ExamplePoint>public String pyUDT()
UserDefinedTypepyUDT in class UserDefinedType<ExamplePoint>public scala.collection.Seq<Object> serialize(Object obj)
UserDefinedTypeTODO: Can we make this take obj: UserType? The issue is in ScalaReflection.convertToCatalyst, where we need to convert Any to UserType.
serialize in class UserDefinedType<ExamplePoint>public ExamplePoint deserialize(Object datum)
UserDefinedTypedeserialize in class UserDefinedType<ExamplePoint>public Class<ExamplePoint> userClass()
UserDefinedTypeuserClass in class UserDefinedType<ExamplePoint>public ExamplePointUDT asNullable()
UserDefinedTypeasNullable in class UserDefinedType<ExamplePoint>