Annotation Interface SQLUserDefinedType


@DeveloperApi @Retention(RUNTIME) @Target(TYPE) public @interface SQLUserDefinedType
::DeveloperApi:: A user-defined type which can be automatically recognized by a SQLContext and registered. WARNING: UDTs are currently only supported from Scala.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends UserDefinedType<?>>
    Returns an instance of the UserDefinedType which can serialize and deserialize the user class to and from Catalyst built-in types.
  • Element Details

    • udt

      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.