public abstract class BaseKeyGenerator extends KeyGenerator
KeyGenerator with default logic of taking
partitioning and timestamp configs.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
consistentLogicalTimestampEnabled |
static String |
EMPTY_PARTITION |
protected boolean |
encodePartitionPath |
protected boolean |
hiveStylePartitioning |
protected List<String> |
partitionPathFields |
protected List<String> |
recordKeyFields |
config| Modifier | Constructor and Description |
|---|---|
protected |
BaseKeyGenerator(TypedProperties config) |
| Modifier and Type | Method and Description |
|---|---|
HoodieKey |
getKey(org.apache.avro.generic.GenericRecord record)
Generate a Hoodie Key out of provided generic record.
|
abstract String |
getPartitionPath(org.apache.avro.generic.GenericRecord record)
Generate a partition path out of provided generic record.
|
List<String> |
getPartitionPathFields() |
abstract String |
getRecordKey(org.apache.avro.generic.GenericRecord record)
Generate a record Key out of provided generic record.
|
List<String> |
getRecordKeyFieldNames()
Used during bootstrap, to project out only the record key fields from bootstrap source dataset.
|
boolean |
isConsistentLogicalTimestampEnabled() |
public static final String EMPTY_PARTITION
protected final boolean encodePartitionPath
protected final boolean hiveStylePartitioning
protected final boolean consistentLogicalTimestampEnabled
protected BaseKeyGenerator(TypedProperties config)
public abstract String getRecordKey(org.apache.avro.generic.GenericRecord record)
public abstract String getPartitionPath(org.apache.avro.generic.GenericRecord record)
public final HoodieKey getKey(org.apache.avro.generic.GenericRecord record)
getKey in interface KeyGeneratorInterfacegetKey in class KeyGeneratorpublic List<String> getRecordKeyFieldNames()
KeyGeneratorgetRecordKeyFieldNames in interface KeyGeneratorInterfacegetRecordKeyFieldNames in class KeyGeneratorpublic boolean isConsistentLogicalTimestampEnabled()
Copyright © 2024 The Apache Software Foundation. All rights reserved.