StoredDatastoreItemInfo¶
-
class
lsst.daf.butler.StoredDatastoreItemInfo¶ Bases:
objectInternal information associated with a stored dataset in a
Datastore.This is an empty base class. Datastore implementations are expected to write their own subclasses.
Methods Summary
file_location(factory)Return the location of artifact. from_record(record, Any])Create instance from database record. 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.
- factory :
-
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.
- record :
-