nvflare.tool.job.config.config_indexer module

class KeyIndex(key: str, value: NoneType | Any | pyhocon.config_tree.ConfigTree = None, parent_key: Union[ForwardRef('KeyIndex'), NoneType] = None, index: int | NoneType = None, component_name: str | NoneType = None)[source]

Bases: object

component_name: str | None = None
index: int | None = None
key: str
parent_key: KeyIndex | None = None
value: None | Any | ConfigTree = None
add_class_defaults_to_key(excluded_keys, key_index, key_indices, results)[source]
add_default_values(excluded_keys, key_indices: Dict)[source]
add_to_indices(key, key_index, key_indices)[source]
build_dict_reverse_order_index(config: ConfigTree, excluded_keys: List[str] | None = None, root_index: KeyIndex | None = None, key_indices: Dict | None = None) Dict[source]
build_list_reverse_order_index(config_list: List, key: str, excluded_keys: List[str] | None, root_index: KeyIndex | None, key_indices: Dict | None) Dict[source]

Recursively build a reverse order index for a list.

build_reverse_order_index(input_config_file_path: str) Tuple[str, ConfigTree, List[str], Dict][source]
has_none_primitives_in_list(values: List)[source]
is_primitive(value)[source]
load_pyhocon_conf(config_file_path: str, search_dir: str | None) Tuple[ConfigTree, str][source]

Loads config using pyhocon.

populate_key_component_names(key_indices: Dict)[source]
update_index_comp_name(key_index: KeyIndex)[source]