I need to write GenericRecords into several Avro files with different Schemas.
What are the possible approaches besides AvroIO.writeCustomTypeToGenericRecords() with custom class that expands DynamicAvroDestinations? I followed more or less the same procedure from "Writing data to multiple destinations" paragraph but the documentation says that the .to(DynamicAvroDestinations<UserT,NewDestinationT,OutputT> dynamicDestinations) method is already deprecated suggesting to use FileIO.write() or FileIO.writeDynamic() without any further documentation or code examples.