I have a GenericRecord with nested fields. When I use genericRecord.get(1)
it returns an Object that contains the nested AVRO data.
I want to be able to access that object like genericRecord.get(1).get(0)
, but I can't because AVRO returns an Object.
Is there an easy way around this?
When I do something like returnedObject.get("item")
it says item not a member of returnedObject
.
parsedSchema.getField("toplevel").schema
Am I able to then use that to decode the nested Object that GenericRecord returns? – Jephthah