LokJSONAccessStrategy¶
Inherits:
The LokJSONAccessStrategy class is responsible for implementing JSON data accessing.
Description¶
This class inherits from the LokAccessStrategy in order to implement its _save_partition and _load_partition methods and, with that, provide saving and loading functionalities for JSON data.
Version: 1.0.0 Author: github.com/nadjiel <github.com/nadjiel>_
Method Index¶
Method Descriptions¶
Dictionary _save_partition(String partition_path, Dictionary data, bool replace = false)¶
The _save_partition method overrides its super counterpart LokAccessStrategy._save_partition in order to provide data saving in the JSON format.
When finished, this method returns a Dictionary with the data it saved.
To read more about the parameters of this method, see LokAccessStrategy._save_partition.
Dictionary _load_partition(String partition_path)¶
The _load_partition method overrides its super counterpart LokAccessStrategy._load_partition in order to provide data loading in the JSON format.
When finished, this method returns a Dictionary with the data it loaded.
To read more about the parameters of this method and the format of its return, see LokAccessStrategy._load_partition.