Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package TestAvroTools;
- import java.util.ArrayList;
- public class InduceSchemaIPClass {
- private int inta;
- private String stringb;
- private ArrayList<String> a = null;
- private boolean booleana;
- private static class InnerKlass{
- int innerKlassInta;
- }
- }
- {
- "type" : "record",
- "name" : "InduceSchemaIPClass",
- "namespace" : "test.avro.ip",
- "fields" : [ {
- "name" : "inta",
- "type" : "int"
- }, {
- "name" : "stringb",
- "type" : "string"
- }, {
- "name" : "a",
- "type" : {
- "type" : "array",
- "items" : "string",
- "java-class" : "java.util.ArrayList"
- }
- }, {
- "name" : "booleana",
- "type" : "boolean"
- } ]
- }
- for (Field field : c.getDeclaredFields())
- if ((field.getModifiers() & (Modifier.TRANSIENT|Modifier.STATIC)) == 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement