public class TimeBasedUUIDGenerator extends Object implements IUUIDGenerator
These are essentially flake ids (http://boundary.com/blog/2012/01/12/flake-a-decentralized-k-ordered-unique-id-generator-in-erlang) but we use 6 (not 8) bytes for timestamp, and use 3 (not 2) bytes for sequence number. We also reorder bytes in a way that does not make ids sort in order anymore, but is more friendly to the way that the Lucene terms dictionary is structured.
INSTANCE| Constructor and Description |
|---|
TimeBasedUUIDGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
currentTimeMillis() |
String |
getBase64UUID() |
protected byte[] |
macAddress() |
protected long currentTimeMillis()
protected byte[] macAddress()
public String getBase64UUID()
getBase64UUID in interface IUUIDGeneratorCopyright © 2014–2023. All rights reserved.