Class Field.Set

java.lang.Object
io.debezium.config.Field.Set
All Implemented Interfaces:
Iterable<Field>
Enclosing class:
Field

@Immutable public static final class Field.Set extends Object implements Iterable<Field>
A set of fields.
  • Field Details

  • Constructor Details

  • Method Details

    • fieldWithName

      public Field fieldWithName(String name)
      Get the field with the given {Field#name() name}.
      Parameters:
      name - the name of the field
      Returns:
      the field, or null if there is no field with the given name
    • iterator

      public Iterator<Field> iterator()
      Specified by:
      iterator in interface Iterable<Field>
    • asArray

      public Field[] asArray()
      Get the fields in this set as an array.
      Returns:
      the array of fields; never null
    • forEachMissingDependent

      public void forEachMissingDependent(Consumer<String> consumer)
      Call the supplied function for each of this set's fields that have non-existent dependents.
      Parameters:
      consumer - the function; may not be null
    • forEachTopLevelField

      public void forEachTopLevelField(Consumer<Field> consumer)
      Call the supplied function for each of this set's fields that are not included as dependents in other fields.
      Parameters:
      consumer - the function; may not be null
    • with

      public Field.Set with(Field... fields)
      Get a new set that contains the fields in this set and those supplied.
      Parameters:
      fields - the fields to include with this set's fields
      Returns:
      the new set; never null
    • with

      public Field.Set with(Iterable<Field> fields)
      Get a new set that contains the fields in this set and those supplied.
      Parameters:
      fields - the fields to include with this set's fields
      Returns:
      the new set; never null
    • allFieldNames

      public Set<String> allFieldNames()
    • filtered

      public Field.Set filtered(Predicate<Field> filter)