1
我正在使用Apache Avro。以編程方式從架構中獲取類(Apache avro)
我在Java代碼中定義的架構JSON字符串:
String schemaStr = STRING_IN_JSON_FORMAT;
//use Parser to parse above string to Schema object
Schema.Parser parser = new Schema.Parser();
Schema schema = parser.parse(schemaStr);
//How to programmatically get the class from the schema I got at this point?
如何繼續我的代碼來從架構編程方式獲取類?