org.apache.spark.sql.types
Annotation Type SQLUserDefinedType


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface SQLUserDefinedType

::DeveloperApi:: A user-defined type which can be automatically recognized by a SQLContext and registered.

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.


Required Element Summary
 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.
 

Element Detail

udt

public abstract 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.