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¶
- value: None | Any | ConfigTree = None¶
- 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]¶