public enum KeyGeneratorType extends Enum<KeyGeneratorType>
KeyGenerator.| Enum Constant and Description |
|---|
COMPLEX
Complex key generator, which takes names of fields to be used for recordKey and partitionPath as configs.
|
CUSTOM
This is a generic implementation type of KeyGenerator where users can configure record key as a single field or
a combination of fields.
|
GLOBAL_DELETE
Key generator for deletes using global indices.
|
NON_PARTITION
Simple Key generator for unpartitioned Hive Tables.
|
SIMPLE
Simple key generator, which takes names of fields to be used for recordKey and partitionPath as configs.
|
TIMESTAMP
Key generator, that relies on timestamps for partitioning field.
|
| 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.
|
public static final KeyGeneratorType SIMPLE
public static final KeyGeneratorType COMPLEX
public static final KeyGeneratorType TIMESTAMP
public static final KeyGeneratorType CUSTOM
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 NON_PARTITION
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 © 2022 The Apache Software Foundation. All rights reserved.