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 2020/12/29 11:18:10 UTC

[GitHub] [pulsar] Jennifer88huang commented on a change in pull request #9079: [Doc] Add docs for ProtobufNative Schema

Jennifer88huang commented on a change in pull request #9079:
URL: https://github.com/apache/pulsar/pull/9079#discussion_r549667361



##########
File path: site2/docs/schema-understand.md
##########
@@ -287,25 +289,36 @@ This example shows how to construct a key/value schema and then use it to produc
     KeyValue<Integer, String> kv = msg.getValue();
     ```
 
+<!--END_DOCUSAURUS_CODE_TABS-->
+
 #### struct
 
-Pulsar uses [Avro Specification](http://avro.apache.org/docs/current/spec.html) to declare the schema definition for `struct` schema. 
+This section describes the details of type and usage of the `struct` schema.
 
-This allows Pulsar:
+##### Type
 
-* to use same tools to manage schema definitions
+`struct` schema supports `AvroBaseStructSchema` and `ProtobufNativeSchema`.
 
-* to use different serialization/deserialization methods to handle data
+|Type|Description|
+---|---|
+`AvroBaseStructSchema`|Pulsar uses [Avro Specification](http://avro.apache.org/docs/current/spec.html) to declare the schema definition for `AvroBaseStructSchema`, which supports  `AvroSchema`, `JsonSchema`, and `ProtobufSchema`. <br><br>This allows Pulsar:<br>- to use same tools to manage schema definitions<br>- to use different serialization or deserialization methods to handle data|

Review comment:
       ... to use the same tools...




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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