@Deprecated public class ReflectionUtils extends Object
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.
|
public 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 destroyedIOException
Copyright © 2022. All rights reserved.