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 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 value
        replacement - the replacement value
        conflictsWithOriginal - 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