avro

Apache AVRO with Rest

纵饮孤独 提交于 2020-11-30 12:44:05
问题 I am evaluating using Apache AVRO for my Jersey REST services. I am using Springboot with Jersey REST. Currently I am accepting JSON as input which are converted to Java Pojos using the Jackson object mapper. I have looked in different places but I cannot find any example that is using Apache AVRO with a Jersey end point. I have found this Github repository (https://github.com/FasterXML/jackson-dataformats-binary/) which has Apache AVRO plugin. I still cannot find any good example as how to

How to create schema containing list of objects using Avro?

寵の児 提交于 2020-11-30 02:59:45
问题 Does anyone knows how to create Avro schema which contains list of objects of some class? I want my generated classes to look like below : class Child { String name; } class Parent { list<Child> children; } For this, I have written part of schema file but do not know how to tell Avro to create list of objects of type Children ? My schema file looks like below : { "name": "Parent", "type":"record", "fields":[ { "name":"children", "type":{ "name":"Child", "type":"record", "fields":[ {"name":