Package io.debezium.schema
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.
Function used to report that an original value was replaced with an Avro-compatible string.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accept that the original value was not Avro-compatible and was replaced.Create a new function that calls this function and then calls the next function.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 Details
-
accept
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
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
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
-