ReflectionUtils@Deprecated public class ReflectionUtils extends ReflectionUtils
CONSTRUCTOR_CACHE| Modifier and Type | Method and Description |
|---|---|
static <T> T |
copy(Configuration conf,
T src,
T dst)
Deprecated.
Make a copy of the writable object using serialization to a buffer
|
static <T> T |
newInstance(Class<T> theClass,
Configuration conf)
Deprecated.
Create an object for the given class and initialize it from conf
|
static void |
setConf(Object theObject,
Configuration conf)
Deprecated.
Check and set 'configuration' if necessary.
|
getClass, printThreadInfo, setContentionTracingpublic static <T> T newInstance(Class<T> theClass, Configuration conf)
theClass - class of which an object is createdconf - Configurationpublic static void setConf(Object theObject, Configuration conf)
theObject - object for which to set configurationconf - Configurationpublic static <T> T copy(Configuration conf, T src, T dst) throws IOException
dst - the object to copy fromsrc - the object to copy into, which is destroyedIOExceptionCopyright © 2019. All rights reserved.