@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 |
|---|
AUTO_RECORD |
AUTO_RECORD_AVRO |
COMPLEX |
COMPLEX_AVRO |
CUSTOM |
CUSTOM_AVRO |
GLOBAL_DELETE |
GLOBAL_DELETE_AVRO |
HOODIE_TABLE_METADATA |
NON_PARTITION |
NON_PARTITION_AVRO |
SIMPLE |
SIMPLE_AVRO |
SPARK_SQL |
SPARK_SQL_MERGE_INTO |
SPARK_SQL_UUID |
STREAMER_TEST |
TIMESTAMP |
TIMESTAMP_AVRO |
| Modifier and Type | Method and Description |
|---|---|
static KeyGeneratorType |
fromClassName(String className) |
String |
getClassName() |
static String |
getKeyGeneratorClassName(HoodieConfig config) |
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="Simple key generator, which takes names of fields to be used for recordKey and partitionPath as configs.") public static final KeyGeneratorType SIMPLE_AVRO
@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="Complex key generator, which takes names of fields to be used for recordKey and partitionPath as configs.") public static final KeyGeneratorType COMPLEX_AVRO
@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="Timestamp-based key generator, that relies on timestamps for partitioning field. Still picks record key by name.") public static final KeyGeneratorType TIMESTAMP_AVRO
@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="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_AVRO
@EnumFieldDescription(value="Simple Key generator for non-partitioned tables.") public static final KeyGeneratorType NON_PARTITION
@EnumFieldDescription(value="Simple Key generator for non-partitioned tables.") public static final KeyGeneratorType NON_PARTITION_AVRO
@EnumFieldDescription(value="Key generator for deletes using global indices.") public static final KeyGeneratorType GLOBAL_DELETE
@EnumFieldDescription(value="Key generator for deletes using global indices.") public static final KeyGeneratorType GLOBAL_DELETE_AVRO
@EnumFieldDescription(value="Automatic record key generation.") public static final KeyGeneratorType AUTO_RECORD
@EnumFieldDescription(value="Automatic record key generation.") public static final KeyGeneratorType AUTO_RECORD_AVRO
@EnumFieldDescription(value="Custom key generator for the Hudi table metadata.") public static final KeyGeneratorType HOODIE_TABLE_METADATA
@EnumFieldDescription(value="Custom spark-sql specific KeyGenerator overriding behavior handling TimestampType partition values.") public static final KeyGeneratorType SPARK_SQL
@EnumFieldDescription(value="A KeyGenerator which use the uuid as the record key.") public static final KeyGeneratorType SPARK_SQL_UUID
@EnumFieldDescription(value="Meant to be used internally for the spark sql MERGE INTO command.") public static final KeyGeneratorType SPARK_SQL_MERGE_INTO
@EnumFieldDescription(value="A test KeyGenerator for deltastreamer tests.") public static final KeyGeneratorType STREAMER_TEST
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 nullpublic String getClassName()
public static KeyGeneratorType fromClassName(String className)
@Nullable public static String getKeyGeneratorClassName(HoodieConfig config)
Copyright © 2024 The Apache Software Foundation. All rights reserved.