remote_catalog
Functions for bundling and unbundling remote catalog ids into the standard CatalogEntry entity.
generate_composite_id(id1, id2)
Creates a composite id given two ids.
Source code in mlte/store/catalog/remote_catalog.py
23 24 25 26 27 28 | |
remove_remote_catalog_id(entry)
Creates a new entry from the given one, removing the remote catalog id from its identifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entry
|
CatalogEntry
|
An entry with its entry_id being a combination of the remote catalog id the entry is in and the real entry id. |
required |
Returns:
| Type | Description |
|---|---|
CatalogEntry
|
An entry with its expected entry id, as well as its catalog_id being the final remote catalog id where it is stored remotely. |
Source code in mlte/store/catalog/remote_catalog.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | |
split_ids(composite_id)
Split a composite id, returning the first part, and the rest.
Source code in mlte/store/catalog/remote_catalog.py
10 11 12 13 14 15 16 17 18 19 20 | |