StoredMemoryItemInfo

class lsst.daf.butler.datastores.inMemoryDatastore.StoredMemoryItemInfo(timestamp: float, storageClass: StorageClass, parentID: Union[int, UUID])

Bases: StoredDatastoreItemInfo

Internal InMemoryDatastore Metadata associated with a stored DatasetRef.

Attributes Summary

parentID

ID of the parent DatasetRef if this entry is a concrete composite.

storageClass

StorageClass associated with the dataset.

timestamp

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.

Attributes Documentation

parentID: Union[int, 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.

timestamp: float

Unix timestamp indicating the time the dataset was stored.

Methods Documentation

file_location(factory: LocationFactory) Location

Return the location of artifact.

Parameters:
factoryLocationFactory

Factory relevant to the datastore represented by this item.

Returns:
locationLocation

The location of the item within this datastore.

classmethod from_record(record: Dict[str, Any]) StoredDatastoreItemInfo

Create instance from database record.

Parameters:
recorddict

The record associated with this item.

Returns:
infoinstance of the relevant type.

The newly-constructed item corresponding to the record.