A set of objects in an avro schematic
I have the following field defined in the schema. When I create Java objects using the avro plugin, I get synonyms defined as "java.util.List". Is there anyway I can get the plugin to generate "java.util.Set" in some cases?
{
"name" : "synonyms",
"type" : {
"type" : "array",
"items" : "string",
"java-class" : "java.util.Set"
}
Here is the relevant portion of the generated class. Not sure why the @deprecated .. annotation is being generated!
@Deprecated public java.util.List<java.lang.CharSequence> synonyms;
bump into..
+3
source to share
No one has answered this question yet
Check out similar questions: