@FunctionalInterface @ThreadSafe public static interface SchemaNameAdjuster.ReplacementOccurred
| Modifier and Type | Method and 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.
|
void accept(String original, String replacement, String conflictsWithOriginal)
original - the original valuereplacement - the replacement valueconflictsWithOriginal - the other original value that resulted in the same replacement; may be null if there is
no conflictdefault SchemaNameAdjuster.ReplacementOccurred firstTimeOnly()
default SchemaNameAdjuster.ReplacementOccurred andThen(SchemaNameAdjuster.ReplacementOccurred next)
next - the function to call after this function; may be nullCopyright © 2020 JBoss by Red Hat. All rights reserved.