Package io.debezium.config
Class Field.Set
java.lang.Object
io.debezium.config.Field.Set
- Enclosing class:
- Field
A set of fields.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionField[]
asArray()
Get the fields in this set as an array.fieldWithName
(String name) Get the field with the given {Field#name() name}.void
forEachMissingDependent
(Consumer<String> consumer) Call the supplied function for each of this set's fields that have non-existent dependents.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.iterator()
Get a new set that contains the fields in this set and those supplied.Get a new set that contains the fields in this set and those supplied.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
fieldsByName
-
-
Constructor Details
-
Set
private Set() -
Set
-
-
Method Details
-
fieldWithName
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
-
asArray
Get the fields in this set as an array.- Returns:
- the array of fields; never null
-
forEachMissingDependent
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
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
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
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
-
filtered
-