- All Implemented Interfaces:
- Serializable, KeyGeneratorInterface
public class HoodieTableMetadataKeyGenerator
extends BaseKeyGenerator
Custom key generator for the Hoodie table metadata. The metadata table record payload
has an internal schema with a known key field HoodieMetadataPayload.SCHEMA_FIELD_ID_KEY.
With or without the virtual keys, getting the key from the metadata table record is always
via the above field and there is no real need for a key generator. But, when a write
client is instantiated for the metadata table, when virtual keys are enabled, and when
key generator class is not configured, the default SimpleKeyGenerator will be used.
To avoid using any other key generators for the metadata table which rely on certain
config properties, we need this custom key generator exclusively for the metadata table.
- See Also:
- Serialized Form