ApdbUpdateRecord#

class lsst.dax.apdb.ApdbUpdateRecord(*, update_time_ns: int, update_order: int)#

Bases: ABC

Abstract base class representing all types of update records saved to replica table.

Attributes Summary

apdb_table

Class variable defining APDB table that this update applies to, must be defined in all concrete subclasses.

update_order

Record order in the update.

update_time_ns

Time in nanoseconds since epoch when update happened.

update_type

Class variable defining type of the update, must be defined in all concrete subclasses and be unique.

Methods Summary

from_json(update_time_ns, update_order, json_str)

to_json()

Attributes Documentation

apdb_table: ClassVar[ApdbTables] = <dataclasses._MISSING_TYPE object>#

Class variable defining APDB table that this update applies to, must be defined in all concrete subclasses.

update_order: int = <dataclasses._MISSING_TYPE object>#

Record order in the update.

update_time_ns: int = <dataclasses._MISSING_TYPE object>#

Time in nanoseconds since epoch when update happened.

update_type: ClassVar[str] = <dataclasses._MISSING_TYPE object>#

Class variable defining type of the update, must be defined in all concrete subclasses and be unique.

Methods Documentation

classmethod from_json(update_time_ns: int, update_order: int, json_str: str) ApdbUpdateRecord#
to_json() str#