Class Field.OneOfRecommender

java.lang.Object
io.debezium.config.Field.OneOfRecommender
All Implemented Interfaces:
Field.Recommender
Enclosing class:
Field

public static class Field.OneOfRecommender extends Object implements Field.Recommender
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.
  • Field Details

    • possibleNames

      protected final List<String> possibleNames
  • Constructor Details

    • OneOfRecommender

      public OneOfRecommender(String... possibleNames)
    • OneOfRecommender

      public OneOfRecommender(List<String> possibleNames)
  • Method Details

    • validValues

      public List<Object> validValues(Field field, Configuration config)
      Description copied from interface: Field.Recommender
      Return a set of recommended (and valid) values for the field given the current configuration values.
      Specified by:
      validValues in interface Field.Recommender
      Parameters:
      field - the field for which the recommended values are to be found; may not be null
      config - the configuration; may not be null
      Returns:
      the list of valid values
    • visible

      public boolean visible(Field field, Configuration config)
      Description copied from interface: Field.Recommender
      Set the visibility of the field given the current configuration values.
      Specified by:
      visible in interface Field.Recommender
      Parameters:
      field - the field; may not be null
      config - the configuration; may not be null
      Returns:
      true if the field is to be visible, or false otherwise