|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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 |
---|
public abstract Class<? extends UserDefinedType<?>> udt
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |