models.sequence_number module¶
- 
class models.sequence_number.SequenceNumber(timestamp=None)[source]¶
- Bases: - object- Implementation of the ‘SequenceNumber’ model. - Sequence Number for each change for MongoDB Entity. - Attributes:
- timestamp (long|int): Timestamp field of the change event.
- Mongodb associates each change with a timestamp type which is a 64 bit value where: The most significant 32 bits are a time_t value (seconds since the Unix epoch), the least significant 32 bits are an incrementing ordinal for operations within a given second. Note that the timestamps of events are not consecutive numbers and also we can have multiple colocated changes entries for same timestamp. 
 
 - 
classmethod from_dictionary(dictionary)[source]¶
- Creates an instance of this model from a dictionary - Args:
- dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description. 
- Returns:
- object: An instance of this structure class.