You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/09/14 00:21:01 UTC

[GitHub] sijie commented on a change in pull request #2578: [WIP] Add support for schema extraction from a jar

sijie commented on a change in pull request #2578: [WIP] Add support for schema extraction from a jar
URL: https://github.com/apache/incubator-pulsar/pull/2578#discussion_r217571451
 
 

 ##########
 File path: pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/utils/SchemaExtractor.java
 ##########
 @@ -0,0 +1,29 @@
+package org.apache.pulsar.admin.cli.utils;
+
+import org.apache.avro.Schema;
+import org.apache.avro.reflect.ReflectData;
+import org.codehaus.jackson.map.ObjectMapper;
+import org.codehaus.jackson.map.SerializationConfig;
+import org.codehaus.jackson.schema.JsonSchema;
+
+import java.io.IOException;
+
+public class SchemaExtractor {
 
 Review comment:
   use `Schema.JSON(class).getSchemaInfo()`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services