Package io.lakefs

Class FSConfiguration


  • public final class FSConfiguration
    extends Object
    • Constructor Detail

      • FSConfiguration

        public FSConfiguration()
    • 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 from
        scheme - used to format the key for lookup
        keySuffix - 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 from
        scheme - used to format key for lookup
        keySuffix - key suffix to lookup
        defaultValue - default value returned in case of null
        Returns:
        value found or default value
      • getInt

        public static int getInt​(org.apache.hadoop.conf.Configuration conf,
                                 String scheme,
                                 String keySuffix,
                                 int defaultValue)