@PublicAPIClass(maturity=STABLE) public abstract class KeyGenerator extends Object implements KeyGeneratorInterface
HoodieKey from an Avro record.| Modifier and Type | Field and Description |
|---|---|
protected TypedProperties |
config |
| Modifier | Constructor and Description |
|---|---|
protected |
KeyGenerator(TypedProperties config) |
| Modifier and Type | Method and Description |
|---|---|
abstract HoodieKey |
getKey(org.apache.avro.generic.GenericRecord record)
Generate a Hoodie Key out of provided generic record.
|
List<String> |
getRecordKeyFieldNames()
Used during bootstrap, to project out only the record key fields from bootstrap source dataset.
|
protected final TypedProperties config
protected KeyGenerator(TypedProperties config)
@PublicAPIMethod(maturity=STABLE) public abstract HoodieKey getKey(org.apache.avro.generic.GenericRecord record)
getKey in interface KeyGeneratorInterface@PublicAPIMethod(maturity=EVOLVING) public List<String> getRecordKeyFieldNames()
getRecordKeyFieldNames in interface KeyGeneratorInterfaceCopyright © 2024 The Apache Software Foundation. All rights reserved.