Package io.debezium.config
Interface Field.Recommender
- All Known Implementing Classes:
Field.EnumRecommender
,Field.InvisibleRecommender
,Field.OneOfRecommender
- Enclosing class:
- Field
public static interface Field.Recommender
A component that is able to provide recommended values for a field given a configuration.
In case that there are
dependencies
between fields, the valid values and visibility
for a field may change given the values of other fields.-
Method Summary
Modifier and TypeMethodDescriptionvalidValues
(Field field, Configuration config) Return a set of recommended (and valid) values for the field given the current configuration values.boolean
visible
(Field field, Configuration config) Set the visibility of the field given the current configuration values.
-
Method Details
-
validValues
Return a set of recommended (and valid) values for the field given the current configuration values.- Parameters:
field
- the field for which the recommended values are to be found; may not be nullconfig
- the configuration; may not be null- Returns:
- the list of valid values
-
visible
Set the visibility of the field given the current configuration values.- Parameters:
field
- the field; may not be nullconfig
- the configuration; may not be null- Returns:
true
if the field is to be visible, orfalse
otherwise
-