Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
schema.serde.distribution.FunctionRegistry Stay organized with collections
Save and categorize content based on your preferences.
A dictionary-like container for custom functions used in serialization.
View aliases
Main aliases
`schema.serde.eda_spec.FunctionRegistry`, `schema.serde.meridian_serde.FunctionRegistry`
schema
.
serde
.
distribution
.
FunctionRegistry
(
*
args
,
**
kwargs
)
This class extends dict and provides methods for hashing, validation,
and key retrieval based on function identity, required for safe
serialization and deserialization of models that use custom functions.
Positional arguments to pass to the dictionary constructor.
Keyword arguments to pass to the dictionary constructor.
Returns hashed function registry with keys mapped to hashed function code.
Methods
get_function_key
View source
get_function_key
(
func
:
Callable
[
...
,
Any
]
)
->
(
str
|
None
)
Returns the function key for the given function from the registry.
validate
View source
validate
(
stored_hashed_function_registry
:
dict
[
str
,
str
]
)
Validates whether functions within the registry have changed.
It checks that all functions listed in stored_hashed_function_registry
are present in this registry, and that their source code hash matches
the stored hash.
stored_hashed_function_registry
The hashed function registry from the
serialized object.
ValueError
If a function is missing or a hash mismatch is detected.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-09 UTC."],[],[]]