StoredDatastoreItemInfo¶
- class lsst.daf.butler.StoredDatastoreItemInfo¶
Bases:
object
Internal information associated with a stored dataset in a
Datastore
.This is an empty base class. Datastore implementations are expected to write their own subclasses.
Attributes Summary
Dataset ID associated with this record (
DatasetId
).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
- dataset_id¶
Dataset ID associated with this record (
DatasetId
).
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.