Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. package TestAvroTools;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. public class InduceSchemaIPClass {
  6.  
  7. private int inta;
  8. private String stringb;
  9. private ArrayList<String> a = null;
  10. private boolean booleana;
  11.  
  12. private static class InnerKlass{
  13. int innerKlassInta;
  14.  
  15. }
  16.  
  17. }
  18.  
  19. {
  20. "type" : "record",
  21. "name" : "InduceSchemaIPClass",
  22. "namespace" : "test.avro.ip",
  23. "fields" : [ {
  24. "name" : "inta",
  25. "type" : "int"
  26. }, {
  27. "name" : "stringb",
  28. "type" : "string"
  29. }, {
  30. "name" : "a",
  31. "type" : {
  32. "type" : "array",
  33. "items" : "string",
  34. "java-class" : "java.util.ArrayList"
  35. }
  36. }, {
  37. "name" : "booleana",
  38. "type" : "boolean"
  39. } ]
  40. }
  41.  
  42. for (Field field : c.getDeclaredFields())
  43. if ((field.getModifiers() & (Modifier.TRANSIENT|Modifier.STATIC)) == 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement