ReplicaChunk#

class lsst.dax.apdb.ReplicaChunk(id: int, last_update_time: Time, unique_id: UUID)#

Bases: object

Class used for identification of replication chunks.

Instances of this class are used to identify the units of transfer from APDB to PPDB. Usually single ReplicaChunk corresponds to multiple consecutive calls to Apdb.store method.

Every store with the same id value will update unique_id with some unique value so that it can be verified on PPDB side.

Attributes Summary

id

A number identifying replication chunk (int).

last_update_time

Time of last insert for this chunk, usually corresponds to visit time (astropy.time.Time).

unique_id

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.