Package org.apache.polaris.ids.api
Interface IdGenerator
- All Known Subinterfaces:
SnowflakeIdGenerator
public interface IdGenerator
The primary interface for generating a contention-free ID.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringdescribeId(long id) longGenerate a new, unique ID.longsystemIdForNode(int nodeId) Generate the system ID for a node, solely used for node management.
-
Field Details
-
NONE
-
-
Method Details
-
generateId
long generateId()Generate a new, unique ID. -
systemIdForNode
long systemIdForNode(int nodeId) Generate the system ID for a node, solely used for node management. -
describeId
-