StoredFileInfo¶
- class lsst.daf.butler.StoredFileInfo(formatter: FormatterParameter, path: str, storageClass: StorageClass, component: str | None, checksum: str | None, file_size: int, dataset_id: DatasetId)¶
- Bases: - StoredDatastoreItemInfo- Datastore-private metadata associated with a Datastore file. - Attributes Summary - Checksum of the serialized dataset. - Component associated with this file. - DatasetId associated with this record. - Size of the serialized dataset in bytes. - Fully-qualified name of Formatter. - Path to dataset within Datastore. - StorageClass associated with Dataset. - Methods Summary - file_location(factory)- Return the location of artifact. - from_record(record)- Create instance from database record. - rebase(ref)- Return a copy of the record suitable for a specified reference. - Convert the supplied ref to a database record. - update(**kwargs)- Create a new class with everything retained apart from the specified values. - Attributes Documentation - component: str | None¶
- Component associated with this file. Can be None if the file does not refer to a component of a composite. 
 - dataset_id: DatasetId¶
- DatasetId associated with this record. 
 - formatter: str¶
- Fully-qualified name of Formatter. If a Formatter class or instance is given the name will be extracted. 
 - storageClass: StorageClass¶
- StorageClass associated with Dataset. 
 - storageClassFactory = <lsst.daf.butler.core.storageClass.StorageClassFactory object>¶
 - Methods Documentation - file_location(factory: LocationFactory) Location¶
- Return the location of artifact. - Parameters:
- factoryLocationFactory
- Factory relevant to the datastore represented by this item. 
 
- factory
- Returns:
- locationLocation
- The location of the item within this datastore. 
 
- location
 
 - classmethod from_record(record: Mapping[str, Any]) StoredFileInfo¶
- Create instance from database record. - Parameters:
- recorddict
- The record associated with this item. 
 
- record
- Returns:
- infoStoredFileInfo
- The newly-constructed item corresponding to the record. 
 
- info
 
 - rebase(ref: DatasetRef) StoredFileInfo¶
- Return a copy of the record suitable for a specified reference. - Parameters:
- refDatasetRef
- DatasetRef which provides component name and dataset ID for the new returned record. 
 
- ref
- Returns:
- recordStoredFileInfo
- New record instance. 
 
- record
 
 - update(**kwargs: Any) StoredFileInfo¶
- Create a new class with everything retained apart from the specified values.