StoredMemoryItemInfo¶
- class lsst.daf.butler.datastores.inMemoryDatastore.StoredMemoryItemInfo(timestamp: float, storageClass: StorageClass, parentID: UUID, dataset_id: UUID)¶
Bases:
StoredDatastoreItemInfo
Internal InMemoryDatastore Metadata associated with a stored DatasetRef.
Attributes Summary
DatasetId associated with this record.
ID of the parent
DatasetRef
if this entry is a concrete composite.StorageClass associated with the dataset.
Unix timestamp indicating the time the dataset was stored.
Methods Summary
file_location
(factory)Return the location of artifact.
from_record
(record)Create instance from database record.
Convert record contents to a dictionary.
update
(**kwargs)Create a new class with everything retained apart from the specified values.
Attributes Documentation
- parentID: UUID¶
ID of the parent
DatasetRef
if this entry is a concrete composite. Not used if the dataset being stored is not a virtual component of a composite
- storageClass: StorageClass¶
StorageClass associated with the dataset.
Methods Documentation
- file_location(factory: LocationFactory) Location ¶
Return the location of artifact.
- Parameters:
- factory
LocationFactory
Factory relevant to the datastore represented by this item.
- factory
- Returns:
- location
Location
The location of the item within this datastore.
- location
- classmethod from_record(record: Mapping[str, Any]) StoredDatastoreItemInfo ¶
Create instance from database record.
- Parameters:
- record
dict
The record associated with this item.
- record
- Returns:
- infoinstance of the relevant type.
The newly-constructed item corresponding to the record.
- update(**kwargs: Any) StoredDatastoreItemInfo ¶
Create a new class with everything retained apart from the specified values.