Hi Subhasish,
It looks like you’re trying to create a custom ExampleGen which reads data from files, which we refer to as a FileBasedExampleGen.  See Custom File-Based ExampleGen 5
There is also an example which reads Avro files: Avro Example
I hope that helps!