@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface SQLUserDefinedType
WARNING: This annotation will only work if both Java and Scala reflection return the same class names (after erasure) for the UDT. This will NOT be the case when, e.g., the UDT class is enclosed in an object (a singleton).
WARNING: UDTs are currently only supported from Scala.
Modifier and Type | Required Element and Description |
---|---|
Class<? extends UserDefinedType<?>> |
udt
Returns an instance of the UserDefinedType which can serialize and deserialize the user
class to and from Catalyst built-in types.
|
public abstract Class<? extends UserDefinedType<?>> udt