Package org.apache.spark.util
Interface SparkClassUtils
public interface SparkClassUtils
-
Method Summary
Modifier and TypeMethodDescription<C> Class<C>
classForName
(String className, boolean initialize, boolean noSparkClassLoader) Preferred alternative to Class.forName(className), as well as Class.forName(className, initialize, loader) with current thread's ContextClassLoader.boolean
classIsLoadable
(String clazz) Determines whether the provided class is loadable in the current thread.random()
-
Method Details
-
random
Random random() -
getSparkClassLoader
ClassLoader getSparkClassLoader() -
getContextOrSparkClassLoader
ClassLoader getContextOrSparkClassLoader() -
classForName
Preferred alternative to Class.forName(className), as well as Class.forName(className, initialize, loader) with current thread's ContextClassLoader.- Parameters:
className
- (undocumented)initialize
- (undocumented)noSparkClassLoader
- (undocumented)- Returns:
- (undocumented)
-
classIsLoadable
Determines whether the provided class is loadable in the current thread.
-