public class DFSPropertiesConfiguration extends PropertiesConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_FILE_DIR_ENV_NAME |
static String |
DEFAULT_CONF_FILE_DIR |
static StoragePath |
DEFAULT_PATH |
static String |
DEFAULT_PROPERTIES_FILE |
| Constructor and Description |
|---|
DFSPropertiesConfiguration() |
DFSPropertiesConfiguration(org.apache.hadoop.conf.Configuration hadoopConf,
StoragePath filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropsFromFile(StoragePath filePath)
Add properties from external configuration files.
|
void |
addPropsFromStream(BufferedReader reader,
StoragePath cfgFilePath)
Add properties from buffered reader.
|
static TypedProperties |
addToGlobalProps(String key,
String value) |
static void |
clearGlobalProps() |
TypedProperties |
getGlobalProperties() |
static TypedProperties |
getGlobalProps() |
TypedProperties |
getProps() |
TypedProperties |
getProps(boolean includeGlobalProps) |
static TypedProperties |
loadGlobalProps()
Load global props from hudi-defaults.conf which is under class loader or CONF_FILE_DIR_ENV_NAME.
|
static void |
refreshGlobalProps() |
public static final String DEFAULT_PROPERTIES_FILE
public static final String CONF_FILE_DIR_ENV_NAME
public static final String DEFAULT_CONF_FILE_DIR
public static final StoragePath DEFAULT_PATH
public DFSPropertiesConfiguration(@Nonnull org.apache.hadoop.conf.Configuration hadoopConf, @Nonnull StoragePath filePath)
public DFSPropertiesConfiguration()
public static TypedProperties loadGlobalProps()
public static void refreshGlobalProps()
public static void clearGlobalProps()
public void addPropsFromFile(StoragePath filePath)
filePath - file path for configuration file.public void addPropsFromStream(BufferedReader reader, StoragePath cfgFilePath) throws IOException
reader - Buffered ReaderIOExceptionpublic TypedProperties getGlobalProperties()
getGlobalProperties in class PropertiesConfigpublic static TypedProperties getGlobalProps()
public static TypedProperties addToGlobalProps(String key, String value)
public TypedProperties getProps()
public TypedProperties getProps(boolean includeGlobalProps)
Copyright © 2024 The Apache Software Foundation. All rights reserved.