Package org.elasticsearch.common
Class UUIDs
java.lang.Object
org.elasticsearch.common.UUIDs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Generates a time-based UUID (similar to Flake IDs), which is preferred when generating an ID to be indexed into a Lucene index as primary key.static String
Legacy implementation ofbase64UUID()
, for pre 6.0 indices.static String
Returns a Base64 encoded version of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a privateSecureRandom
instancestatic String
randomBase64UUID(Random random)
Returns a Base64 encoded version of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using the providedRandom
instancestatic SecureString
Returns a Base64 encodedSecureString
of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a privateSecureRandom
instance
-
Constructor Details
-
UUIDs
public UUIDs()
-
-
Method Details
-
base64UUID
Generates a time-based UUID (similar to Flake IDs), which is preferred when generating an ID to be indexed into a Lucene index as primary key. The id is opaque and the implementation is free to change at any time! -
legacyBase64UUID
Legacy implementation ofbase64UUID()
, for pre 6.0 indices. -
randomBase64UUID
Returns a Base64 encoded version of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using the providedRandom
instance -
randomBase64UUID
Returns a Base64 encoded version of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a privateSecureRandom
instance -
randomBase64UUIDSecureString
Returns a Base64 encodedSecureString
of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a privateSecureRandom
instance
-