KAFKA-10384: Separate converters from generated messages
For the generated message code, put the JSON conversion functionality in a separate JsonConverter class. Make MessageDataGenerator simply another generator class, alongside the new JsonConverterGenerator class. Move some of the utility functions from MessageDataGenerator into FieldSpec and other places, so that they can be used by other generator classes. Use argparse4j to support a better command-line for the generator.
显示
- build.gradle 17 个添加, 12 个删除build.gradle
- checkstyle/import-control.xml 2 个添加, 0 个删除checkstyle/import-control.xml
- checkstyle/suppressions.xml 3 个添加, 3 个删除checkstyle/suppressions.xml
- clients/src/main/java/org/apache/kafka/common/protocol/Message.java 0 个添加, 42 个删除...c/main/java/org/apache/kafka/common/protocol/Message.java
- clients/src/test/java/org/apache/kafka/common/message/MessageTest.java 18 个添加, 3 个删除...est/java/org/apache/kafka/common/message/MessageTest.java
- generator/src/main/java/org/apache/kafka/message/FieldSpec.java 340 个添加, 0 个删除...tor/src/main/java/org/apache/kafka/message/FieldSpec.java
- generator/src/main/java/org/apache/kafka/message/FieldType.java 65 个添加, 0 个删除...tor/src/main/java/org/apache/kafka/message/FieldType.java
- generator/src/main/java/org/apache/kafka/message/JsonConverterGenerator.java 412 个添加, 0 个删除...java/org/apache/kafka/message/JsonConverterGenerator.java
- generator/src/main/java/org/apache/kafka/message/MessageClassGenerator.java 36 个添加, 0 个删除.../java/org/apache/kafka/message/MessageClassGenerator.java
- generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java 86 个添加, 684 个删除...n/java/org/apache/kafka/message/MessageDataGenerator.java
- generator/src/main/java/org/apache/kafka/message/MessageGenerator.java 71 个添加, 20 个删除.../main/java/org/apache/kafka/message/MessageGenerator.java
- generator/src/main/java/org/apache/kafka/message/MessageSpec.java 1 个添加, 1 个删除...r/src/main/java/org/apache/kafka/message/MessageSpec.java
- generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java 1 个添加, 1 个删除...c/main/java/org/apache/kafka/message/SchemaGenerator.java
- generator/src/main/java/org/apache/kafka/message/StructRegistry.java 53 个添加, 21 个删除...rc/main/java/org/apache/kafka/message/StructRegistry.java
加载中
想要评论请 注册 或 登录