i’ve an Avro generated class - com.avro.Person which has a method ->
getClassSchema

I’m passing className to a method, and in the method - i need to get the
Avro schema .  Here is the code i'm trying to use -

val pr = Class.forName(productCls)  //where productCls =
classOf[Product].getName

How do i call the method - getClassSchema of this class ?

Pls. let me know.

thanks!

Reply via email to