imas.backends.db_entry_impl.DBEntryImpl¶
- class imas.backends.db_entry_impl.DBEntryImpl¶
Bases:
ABCInterface for DBEntry implementations.
- __init__()¶
Methods
__init__()Get the access layer version used to store data.
close(*[, erase])Close the data source.
delete_data(ids_name, occurrence)Implement DBEntry.delete_data()
from_pulse_run(backend_id, db_name, pulse, ...)Open a datasource with pulse, run and other legacy arguments.
from_uri(uri, mode, factory)Open a datasource by URI.
get(ids_name, occurrence, parameters, ...)Implement DBEntry.get/get_slice/get_sample.
list_all_occurrences(ids_name)Implement DBEntry.list_all_occurrences()
put(ids, occurrence, is_slice)Implement DBEntry.put()/put_slice(): store data.
read_dd_version(ids_name, occurrence)Read data dictionary version that the requested IDS was stored with.
- classmethod from_pulse_run(backend_id: int, db_name: str, pulse: int, run: int, user_name: str | None, data_version: str | None, mode: int, options: Any, factory: IDSFactory) DBEntryImpl¶
Open a datasource with pulse, run and other legacy arguments.
- abstract classmethod from_uri(uri: str, mode: str, factory: IDSFactory) DBEntryImpl¶
Open a datasource by URI.
- abstract get(ids_name: str, occurrence: int, parameters: None | GetSliceParameters | GetSampleParameters, destination: IDSToplevel, lazy: bool, nbc_map: NBCPathMap | None) IDSToplevel¶
Implement DBEntry.get/get_slice/get_sample. Load data from the data source.
- Parameters:
- ids_name: str¶
Name of the IDS to load.
- occurrence: int¶
Which occurence of the IDS to load.
- parameters: None | GetSliceParameters | GetSampleParameters¶
Additional parameters for a get_slice/get_sample call.
- destination: IDSToplevel¶
IDS object to store data in.
- lazy: bool¶
Use lazy loading.
- nbc_map: NBCPathMap | None¶
NBCPathMap to use for implicit conversion. When None, no implicit conversion needs to be done.
- abstract put(ids: IDSToplevel, occurrence: int, is_slice: bool) None¶
Implement DBEntry.put()/put_slice(): store data.