Add method to pass a schema for AvroOutputFormat