Package io.debezium.config
Class Field.InvisibleRecommender
java.lang.Object
io.debezium.config.Field.InvisibleRecommender
- All Implemented Interfaces:
Field.Recommender
- Enclosing class:
- Field
A
Field.Recommender that will look at several fields that are deemed to be exclusive, such that when the first of
them has a value the others are made invisible.-
Constructor Summary
Constructors -
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.booleanvisible(Field field, Configuration config) Set the visibility of the field given the current configuration values.
-
Constructor Details
-
InvisibleRecommender
public InvisibleRecommender()
-
-
Method Details
-
validValues
Description copied from interface:Field.RecommenderReturn a set of recommended (and valid) values for the field given the current configuration values.- Specified by:
validValuesin interfaceField.Recommender- 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
Description copied from interface:Field.RecommenderSet the visibility of the field given the current configuration values.- Specified by:
visiblein interfaceField.Recommender- Parameters:
field- the field; may not be nullconfig- the configuration; may not be null- Returns:
trueif the field is to be visible, orfalseotherwise
-