public class UDTRegistration
extends Object
SQLUserDefinedType
to register UDTs for user classes.
However, by doing this, we add SparkSQL dependency on user classes. This object provides
alternative approach to register UDTs for user classes.Constructor and Description |
---|
UDTRegistration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
exists(String userClassName)
Queries if a given user class is already registered or not.
|
static scala.Option<Class<?>> |
getUDTFor(String userClass)
Returns the Class of UserDefinedType for the name of a given user class.
|
static void |
org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) |
static org.slf4j.Logger |
org$apache$spark$internal$Logging$$log_() |
static void |
register(String userClass,
String udtClass)
Registers an UserDefinedType to an user class.
|
public static boolean exists(String userClassName)
userClassName
- the name of user classpublic static void register(String userClass, String udtClass)
userClass
- the name of user classudtClass
- the name of UserDefinedType class for the given userClasspublic static scala.Option<Class<?>> getUDTFor(String userClass)
userClass
- class name of user classpublic static org.slf4j.Logger org$apache$spark$internal$Logging$$log_()
public static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1)