Package org.apache.flink.orc.writer
Class ThreadLocalClassLoaderConfiguration
- java.lang.Object
-
- org.apache.hadoop.conf.Configuration
-
- org.apache.flink.orc.writer.ThreadLocalClassLoaderConfiguration
-
@Internal public final class ThreadLocalClassLoaderConfiguration extends org.apache.hadoop.conf.ConfigurationWorkaround for https://issues.apache.org/jira/browse/ORC-653.Since the conf is effectively cached across Flink jobs, at least force the thread local classloader to avoid classloader leaks.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalClassLoaderConfiguration()ThreadLocalClassLoaderConfiguration(org.apache.hadoop.conf.Configuration other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getClassByNameOrNull(String name)ClassLoadergetClassLoader()URLgetResource(String name)-
Methods inherited from class org.apache.hadoop.conf.Configuration
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, clear, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, get, get, getBoolean, getClass, getClass, getClassByName, getClasses, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getPropsWithPrefix, getRange, getRaw, getSocketAddr, getSocketAddr, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDuration, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, iterator, main, onlyKeyExists, readFields, reloadConfiguration, reloadExistingConfigurations, set, set, setAllowNullValueProperties, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, setSocketAddr, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml, writeXml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
- Overrides:
getClassLoaderin classorg.apache.hadoop.conf.Configuration
-
getClassByNameOrNull
public Class<?> getClassByNameOrNull(String name)
- Overrides:
getClassByNameOrNullin classorg.apache.hadoop.conf.Configuration
-
-