Package io.debezium.util
Interface SchemaNameAdjuster.ReplacementOccurred
-
- Enclosing interface:
- SchemaNameAdjuster
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface @ThreadSafe public static interface SchemaNameAdjuster.ReplacementOccurred
Function used to report that an original value was replaced with an Avro-compatible string.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(String original, String replacement, String conflictsWithOriginal)
Accept that the original value was not Avro-compatible and was replaced.default SchemaNameAdjuster.ReplacementOccurred
andThen(SchemaNameAdjuster.ReplacementOccurred next)
Create a new function that calls this function and then calls the next function.default SchemaNameAdjuster.ReplacementOccurred
firstTimeOnly()
Create a new function that calls this function only the first time it sees each unique original, and ignores subsequent calls for originals it has already seen.
-
-
-
Method Detail
-
accept
void accept(String original, String replacement, String conflictsWithOriginal)
Accept that the original value was not Avro-compatible and was replaced.- Parameters:
original
- the original valuereplacement
- the replacement valueconflictsWithOriginal
- the other original value that resulted in the same replacement; may be null if there is no conflict
-
firstTimeOnly
default SchemaNameAdjuster.ReplacementOccurred firstTimeOnly()
Create a new function that calls this function only the first time it sees each unique original, and ignores subsequent calls for originals it has already seen.- Returns:
- the new function; never null
-
andThen
default SchemaNameAdjuster.ReplacementOccurred andThen(SchemaNameAdjuster.ReplacementOccurred next)
Create a new function that calls this function and then calls the next function.- Parameters:
next
- the function to call after this function; may be null- Returns:
- the new function; never null
-
-