How to include more than one record in Avro schema?

Viewed 1365

I am new to Apache Avro. I am serializing the data by reading the schema using Parsers. The below details includes my schema. I need to include more than one record in the same schema.

{  "namespace": "tutorial.model",
   "type": "record",
   "name": "Employee",
   "fields": [
               {"name": "firstName", "type": "string"},
               {"name": "lastName", "type": "string"},
               {"name": "age",  "type": "int"},
               {"name": "id",  "type": "string"},
               {"name" : "company", "type" : "string"}
             ]
}
1 Answers
Related