StoredMemoryItemInfo

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

Bases: lsst.daf.butler.StoredDatastoreItemInfo

Internal InMemoryDatastore Metadata associated with a stored DatasetRef.

Attributes Summary

dataset_id DatasetId associated with this record.
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, Any]) Create instance from database record.

Attributes Documentation

dataset_id

DatasetId associated with this record.

parentID

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 associated with the dataset.

timestamp

Unix timestamp indicating the time the dataset was stored.

Methods Documentation

file_location(factory: lsst.daf.butler.core.location.LocationFactory) → lsst.daf.butler.core.location.Location

Return the location of artifact.

Parameters:
factory : LocationFactory

Factory relevant to the datastore represented by this item.

Returns:
location : Location

The location of the item within this datastore.

classmethod from_record(record: Dict[str, Any]) → lsst.daf.butler.core.storedFileInfo.StoredDatastoreItemInfo

Create instance from database record.

Parameters:
record : dict

The record associated with this item.

Returns:
info : instance of the relevant type.

The newly-constructed item corresponding to the record.