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, jsonValue
equalsIgnoreCompatibleNullability, equalsIgnoreNullability, fromCaseClassString, fromJson, isPrimitive, json, prettyJson, sameType, simpleString, typeName, unapply
public DataType sqlType()
UserDefinedType
sqlType
in class UserDefinedType<ExamplePoint>
public String pyUDT()
UserDefinedType
pyUDT
in class UserDefinedType<ExamplePoint>
public scala.collection.Seq<Object> serialize(Object obj)
UserDefinedType
TODO: 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)
UserDefinedType
deserialize
in class UserDefinedType<ExamplePoint>
public Class<ExamplePoint> userClass()
UserDefinedType
userClass
in class UserDefinedType<ExamplePoint>
public ExamplePointUDT asNullable()
UserDefinedType
asNullable
in class UserDefinedType<ExamplePoint>