Hi, Is there a way to clone an avro object if it's type is not known at compile time?
public class Converter<T> { // T extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord public void doSomething(T obj) { // Here I want to clone/make a deep copy of obj T new = ....; // new (obj) } } I could use reflection to do this, but wanted to see if there exists a way to do this using Avro API. Appreciate the help. Thanks!