seaflow.ios package¶
Submodules¶
seaflow.ios.io module¶
Module Introduction¶
This is a data directory object class, with the main function of caching data and the main technology of orderdict.
Design mode:
nothing
Key points:
Orderdict
Main functions:
Data cache
Usage examples¶
Class description¶
- class seaflow.ios.io.BaseDataCatalog¶
Bases:
objectClass Introduction:
This is a data directory object base class, with the main function of caching data and the main technology of orderdict.
Attribute Function:
Define a data directory object class attribute initialization method.
- Parameters:
Cache_Data_Info (OrderedDict) - Cached data information ordered dictionary.
- abstract classmethod load(data_name)¶
Method Function:
Define a method for saving data.
- Parameters:
data_name (string) - dataset name.
- Returns:
data_obj (object) - dataset object.
- abstract classmethod release(data_name)¶
Method Function:
Define a method for releasing data space.
- Parameters:
data_name (string) - dataset name.
- Returns:
result (string) - result string.
- abstract classmethod save(data_name, data_obj)¶
Method Function:
Define a method for saving data.
- Parameters:
data_name (string) - dataset name.
data_obj (object) - dataset object.
- Returns:
result (string) - result string.
- class seaflow.ios.io.LocalDataCatalog¶
Bases:
BaseDataCatalogClass Introduction:
This is a data directory object class, with the main function of caching data and the main technology of orderdict.
Attribute function:
Define a data directory object class attribute initialization method.
- Parameters:
cache_data_info (orderdict) - Cached data information ordered dictionary.
cache_data (orderdict) - Data cache ordered dictionary.
- load(data_name)¶
Method Function:
Define a method for loading data.
- Parameters:
data_name (str) - Dataset name.
- Returns:
data_obj (object) - Dataset object.
- release(data_name)¶
Method Function:
Define a method for releasing data space.
- Parameters:
data_name (str) - Dataset name.
- Returns:
result (str) - Run result information.
- save(data_name, data_obj)¶
Method function:
Define a method for saving data.
- Parameters:
data_name(str) - Dataset name.
data_obj (object) - Dataset object.
- Returns:
result (str): Run result information.