pyapacheatlas.core.util.GuidTracker#
- class pyapacheatlas.core.util.GuidTracker(starting=- 1000, direction='decrease')#
Always grab the next available guid by either inrementing or decrementing. When defining an interconnected set of Atlas Entities, you use a negative integer to provide an entity with a temporary unique id.
- __init__(starting=- 1000, direction='decrease')#
- Parameters
starting (int) – A negative integer to start your guid tracker on.
direction (str) – Either increase or decrease. It controls whether you increment or decrement the guid.
Methods
__init__
([starting, direction])- param int starting
A negative integer to start your guid tracker on.
get_guid
()Retrieve the next unique guid and update the guid.
peek_next_guid
()Peek at the next guid without updating the guid.