@FunctionalInterface @ThreadSafe public static interface AvroValidator.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 AvroValidator.ReplacementOccurred |
andThen(AvroValidator.ReplacementOccurred next)
Create a new function that calls this function and then calls the next function.
|
default AvroValidator.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 AvroValidator.ReplacementOccurred firstTimeOnly()
default AvroValidator.ReplacementOccurred andThen(AvroValidator.ReplacementOccurred next)
next - the function to call after this function; may be nullCopyright © 2018 JBoss by Red Hat. All rights reserved.