@EnumDescription(value="Key generator type, indicating the key generator class to use, that implements `org.apache.hudi.keygen.KeyGenerator`.") public enum KeyGeneratorType extends Enum<KeyGeneratorType>
KeyGenerator.| Enum Constant and Description |
|---|
COMPLEX |
CUSTOM |
GLOBAL_DELETE |
NON_PARTITION |
SIMPLE |
TIMESTAMP |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getNames() |
static KeyGeneratorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyGeneratorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="Simple key generator, which takes names of fields to be used for recordKey and partitionPath as configs.") public static final KeyGeneratorType SIMPLE
@EnumFieldDescription(value="Complex key generator, which takes names of fields to be used for recordKey and partitionPath as configs.") public static final KeyGeneratorType COMPLEX
@EnumFieldDescription(value="Timestamp-based key generator, that relies on timestamps for partitioning field. Still picks record key by name.") public static final KeyGeneratorType TIMESTAMP
@EnumFieldDescription(value="This is a generic implementation type of KeyGenerator where users can configure record key as a single field or a combination of fields. Similarly partition path can be configured to have multiple fields or only one field. This KeyGenerator expects value for prop \"hoodie.datasource.write.partitionpath.field\" in a specific format. For example: properties.put(\"hoodie.datasource.write.partitionpath.field\", \"field1:PartitionKeyType1,field2:PartitionKeyType2\").") public static final KeyGeneratorType CUSTOM
@EnumFieldDescription(value="Simple Key generator for non-partitioned tables.") public static final KeyGeneratorType NON_PARTITION
@EnumFieldDescription(value="Key generator for deletes using global indices.") public static final KeyGeneratorType GLOBAL_DELETE
public static KeyGeneratorType[] values()
for (KeyGeneratorType c : KeyGeneratorType.values()) System.out.println(c);
public static KeyGeneratorType 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 © 2024 The Apache Software Foundation. All rights reserved.