Package io.openlineage.client.utils
Class UUIDUtils
java.lang.Object
io.openlineage.client.utils.UUIDUtils
Class used to generate UUID values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UUID
Generate new UUID.static UUID
generateNewUUID
(Instant instant) Generate new UUID for an instant of time.
-
Constructor Details
-
UUIDUtils
public UUIDUtils()
-
-
Method Details
-
generateNewUUID
Generate new UUID. Each function call returns a new UUID value.UUID version is an implementation detail, and should not be relied on. For now it is UUIDv7, so for increasing instant values, returned UUID is always greater than previous one.
- Returns:
UUID
v7- Since:
- 1.15.0
-
generateNewUUID
Generate new UUID for an instant of time. Each function call returns a new UUID value.UUID version is an implementation detail, and should not be relied on. For now it is UUIDv7, so for increasing instant values, returned UUID is always greater than previous one.
Based on com.github.f4b6a3.uuid.UuidCreator.getTimeOrderedEpoch implementation (MIT License).
- Parameters:
instant
- a given instant- Returns:
UUID
v7- Since:
- 1.15.0
-