Class ImmutableCloningVisitor

  • All Implemented Interfaces:
    SchemaVisitor<ImmutableSchema>

    public final class ImmutableCloningVisitor
    extends Object
    implements SchemaVisitor<ImmutableSchema>
    this visitor will create a clone of the original Schema with docs and other nonesential fields stripped by default. what attributes are copied is customizable.
    Author:
    zoly
    • Constructor Detail

      • ImmutableCloningVisitor

        public ImmutableCloningVisitor​(org.apache.avro.Schema root,
                                       boolean serializationSignificatOnly)
      • ImmutableCloningVisitor

        public ImmutableCloningVisitor​(BiConsumer<org.apache.avro.Schema.Field,​org.apache.avro.Schema.Field> copyField,
                                       BiConsumer<org.apache.avro.Schema,​org.apache.avro.Schema> copySchema,
                                       boolean copyDocs,
                                       org.apache.avro.Schema root)