java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ConfigurationProperties

public class ConfigurationProperties extends Object
A trie storage to preprocess and store configuration properties for optimised retrieval. A node is created for every key part delimited by ".". A property entry is stored in a node that matches its next to last key part (which reduces the nodes created). For example: yarn.scheduler.capacity.root.max-applications 100 yarn.scheduler.capacity.root.state RUNNING 4 nodes are created: yarn - scheduler - capacity - root root node will have the two properties set in its values.
  • Constructor Details

    • ConfigurationProperties

      public ConfigurationProperties(Map<String,String> props)
      A constructor defined in order to conform to the type used by Configuration. It must only be called by String keys and values.
      Parameters:
      props - properties to store
  • Method Details

    • getPropertiesWithPrefix

      public Map<String,String> getPropertiesWithPrefix(String prefix)
      Filters all properties by a prefix. The property keys are trimmed by the given prefix.
      Parameters:
      prefix - prefix to filter property keys
      Returns:
      properties matching given prefix
    • getPropertiesWithPrefix

      public Map<String,String> getPropertiesWithPrefix(String prefix, boolean fullyQualifiedKey)
      Filters all properties by a prefix.
      Parameters:
      prefix - prefix to filter property keys
      fullyQualifiedKey - whether collected property keys are to be trimmed by the prefix, or must be kept as it is
      Returns:
      properties matching given prefix