public enum IDGeneratorType extends Enum<IDGeneratorType>
Enum Constant and Description |
---|
SNOWFLAKE
Generate the row ids using the Twitter Snowflake algorithm described in https://github.com/twitter/snowflake
|
UUID_RANDOM
Generate the row ids using the least significant 8 bytes of secure random UUIDs as described in http://www.ietf.org/rfc/rfc4122.txt
|
UUID_TIME
Generate row ids using the least significant 8 bytes of time-based UUIDs as described in http://www.ietf.org/rfc/rfc4122.txt
|
Modifier and Type | Method and Description |
---|---|
static IDGeneratorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IDGeneratorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IDGeneratorType UUID_TIME
public static final IDGeneratorType UUID_RANDOM
public static final IDGeneratorType SNOWFLAKE
public static IDGeneratorType[] values()
for (IDGeneratorType c : IDGeneratorType.values()) System.out.println(c);
public static IDGeneratorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.