Class UUIDs

org.elasticsearch.common.UUIDs

public class UUIDs extends
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static
    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
    Legacy implementation of base64UUID(), for pre 6.0 indices.
    static
    Returns a Base64 encoded version of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a private SecureRandom instance
    static
     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 provided Random instance
    Returns a Base64 encoded SecureString of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a private SecureRandom instance

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • UUIDs

      public UUIDs()
  • Method Details

    • base64UUID

      public static  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

      public static  legacyBase64UUID()
      Legacy implementation of base64UUID(), for pre 6.0 indices.
    • randomBase64UUID

      public static  randomBase64UUID( 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 provided Random instance
    • randomBase64UUID

      public static  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 private SecureRandom instance
    • randomBase64UUIDSecureString

      public static SecureString randomBase64UUIDSecureString()
      Returns a Base64 encoded SecureString of a Version 4.0 compatible UUID as defined here: http://www.ietf.org/rfc/rfc4122.txt, using a private SecureRandom instance