Package io.lakefs
Class FSConfiguration
- java.lang.Object
-
- io.lakefs.FSConfiguration
-
public final class FSConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description FSConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringget(org.apache.hadoop.conf.Configuration conf, String scheme, String keySuffix)lookup value from configuration based on scheme and key suffix.static Stringget(org.apache.hadoop.conf.Configuration conf, String scheme, String keySuffix, String defaultValue)lookup value from configuration based on scheme and key suffix, returns default in case of null value.static intgetInt(org.apache.hadoop.conf.Configuration conf, String scheme, String keySuffix, int defaultValue)
-
-
-
Method Detail
-
get
public static String get(org.apache.hadoop.conf.Configuration conf, String scheme, String keySuffix)
lookup value from configuration based on scheme and key suffix. first try to get "fs.\.\ ", if value not found use the default scheme to build a key for lookup. - Parameters:
conf- configuration object to get the value fromscheme- used to format the key for lookupkeySuffix- key suffix to lookup- Returns:
- key value or null in case no value found
-
get
public static String get(org.apache.hadoop.conf.Configuration conf, String scheme, String keySuffix, String defaultValue)
lookup value from configuration based on scheme and key suffix, returns default in case of null value.- Parameters:
conf- configuration object to get the value fromscheme- used to format key for lookupkeySuffix- key suffix to lookupdefaultValue- default value returned in case of null- Returns:
- value found or default value
-
-