Package org.elasticsearch.common
Class UUIDs
java.lang.Object
org.elasticsearch.common.UUIDs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGenerates 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 StringLegacy implementation ofbase64UUID(), for pre 6.0 indices.static StringReturns a Base64 encoded version of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a privateSecureRandominstancestatic StringrandomBase64UUID(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 providedRandominstancestatic SecureStringReturns a Base64 encodedSecureStringof a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a privateSecureRandominstance
-
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 providedRandominstance -
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 privateSecureRandominstance -
randomBase64UUIDSecureString
Returns a Base64 encodedSecureStringof a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a privateSecureRandominstance
-