Package com.linkedin.venice.guid
Class GuidUtils
- java.lang.Object
-
- com.linkedin.venice.guid.GuidUtils
-
public class GuidUtils extends java.lang.Object
Utility class for generating GUIDs. N.B.: This is not meant for high-throughput utilization. If that becomes a use case, we can optimize it further.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_GUID_GENERATOR_IMPLEMENTATION
static java.lang.String
DETERMINISTIC_GUID_GENERATOR_IMPLEMENTATION
static java.lang.String
GUID_GENERATOR_IMPLEMENTATION
static int
GUID_SIZE_IN_BYTES
-
Constructor Summary
Constructors Constructor Description GuidUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getCharSequenceFromGuid(GUID guid)
static GUID
getGUID(VeniceProperties properties)
static GUID
getGuidFromCharSequence(java.lang.CharSequence charSequence)
static GUID
getGuidFromHex(java.lang.String hexGuid)
static java.lang.String
getGUIDString()
static java.lang.String
getHexFromGuid(GUID guid)
-
-
-
Field Detail
-
GUID_GENERATOR_IMPLEMENTATION
public static final java.lang.String GUID_GENERATOR_IMPLEMENTATION
- See Also:
- Constant Field Values
-
DEFAULT_GUID_GENERATOR_IMPLEMENTATION
public static final java.lang.String DEFAULT_GUID_GENERATOR_IMPLEMENTATION
-
DETERMINISTIC_GUID_GENERATOR_IMPLEMENTATION
public static final java.lang.String DETERMINISTIC_GUID_GENERATOR_IMPLEMENTATION
-
GUID_SIZE_IN_BYTES
public static final int GUID_SIZE_IN_BYTES
-
-
Method Detail
-
getGUID
public static GUID getGUID(VeniceProperties properties)
-
getGuidFromCharSequence
public static GUID getGuidFromCharSequence(java.lang.CharSequence charSequence)
-
getCharSequenceFromGuid
public static java.lang.String getCharSequenceFromGuid(GUID guid)
-
getGuidFromHex
public static GUID getGuidFromHex(java.lang.String hexGuid)
-
getHexFromGuid
public static java.lang.String getHexFromGuid(GUID guid)
-
getGUIDString
public static java.lang.String getGUIDString()
-
-