public class ConfigurationManager extends Object
Constructor and Description |
---|
ConfigurationManager() |
Modifier and Type | Method and Description |
---|---|
static void |
clearLocalConfigs()
Removes the thread-local dml and compiler configurations, leading to
a reinitialization on the next get unless set in between.
|
static int |
getBlocksize() |
static org.apache.hadoop.mapred.JobConf |
getCachedJobConf()
Returns a cached JobConf object, intended for global use by all operations
with read-only access to job conf.
|
static CompilerConfig |
getCompilerConfig()
Gets the current thread-local compiler configuration.
|
static boolean |
getCompilerConfigFlag(CompilerConfig.ConfigType key)
Get a boolean compiler config in a robust manner,
returning false if config not existing.
|
static DMLConfig |
getDMLConfig()
Gets the current thread-local dml configuration.
|
static String |
getScratchSpace() |
static boolean |
isCodegenEnabled() |
static boolean |
isDynamicRecompilation() |
static boolean |
isParallelMatrixOperations() |
static boolean |
isParallelParFor() |
static void |
setCachedJobConf(org.apache.hadoop.mapred.JobConf job) |
static void |
setGlobalConfig(CompilerConfig conf) |
static void |
setGlobalConfig(DMLConfig conf)
Sets a global configuration as a basis for any thread-local configurations.
|
static void |
setLocalConfig(CompilerConfig conf)
Sets the current thread-local compiler configuration to the given config.
|
static void |
setLocalConfig(DMLConfig conf)
Sets the current thread-local dml configuration to the given config.
|
public static org.apache.hadoop.mapred.JobConf getCachedJobConf()
public static void setCachedJobConf(org.apache.hadoop.mapred.JobConf job)
public static void setGlobalConfig(DMLConfig conf)
conf
- the configurationpublic static void setLocalConfig(DMLConfig conf)
conf
- the configurationpublic static DMLConfig getDMLConfig()
public static void setGlobalConfig(CompilerConfig conf)
public static void setLocalConfig(CompilerConfig conf)
conf
- the compiler configurationpublic static void clearLocalConfigs()
public static CompilerConfig getCompilerConfig()
public static boolean getCompilerConfigFlag(CompilerConfig.ConfigType key)
key
- config typepublic static String getScratchSpace()
public static int getBlocksize()
public static boolean isDynamicRecompilation()
public static boolean isParallelMatrixOperations()
public static boolean isParallelParFor()
public static boolean isCodegenEnabled()
Copyright © 2020 The Apache Software Foundation. All rights reserved.