ReplicaChunk#
- class lsst.dax.apdb.ReplicaChunk(id: int, last_update_time: Time, unique_id: UUID)#
Bases:
objectClass used for identification of replication chunks.
Instances of this class are used to identify the units of transfer from APDB to PPDB. Usually single
ReplicaChunkcorresponds to multiple consecutive calls toApdb.storemethod.Every
storewith the sameidvalue will updateunique_idwith some unique value so that it can be verified on PPDB side.Attributes Summary
A number identifying replication chunk (
int).Time of last insert for this chunk, usually corresponds to visit time (
astropy.time.Time).Unique value updated on each new store (
uuid.UUID).Methods Summary
make_replica_chunk(last_update_time, ...)Generate new unique insert identifier.
Attributes Documentation
- id: int = <dataclasses._MISSING_TYPE object>#
A number identifying replication chunk (
int).
- last_update_time: Time = <dataclasses._MISSING_TYPE object>#
Time of last insert for this chunk, usually corresponds to visit time (
astropy.time.Time).
- unique_id: UUID = <dataclasses._MISSING_TYPE object>#
Unique value updated on each new store (
uuid.UUID).
Methods Documentation
- classmethod make_replica_chunk(last_update_time: Time, chunk_window_seconds: int) ReplicaChunk#
Generate new unique insert identifier.