I am trying to get to the key AND value data type for a java Map.
Given the orginal java converted to avro
private java.util.Map<java.lang.String,java.lang.String> testmap;

I am using the following in Java to decode.
   // Print out the schema   System.err.println("Map class type " 
+f.schema().toString());
   // Print out datatype for key / value   for (Schema st : 
f.schema().getValueType().getTypes())           System.err.println("ST is " + 
st.getName());
With a result of:
Map class type 
{"type":"map","values":["null",{"type":"string","avro.java.string":"String"}],"avro.java.string":"String","default":null}ST
 is nullST is string

Should I not get both the orginal <string,string> ?? (From the above testmap)

Thanks in advance....

Reply via email to