momo-jun commented on code in PR #18242: URL: https://github.com/apache/pulsar/pull/18242#discussion_r1012613663
########## site2/docs/schema-understand.md: ########## @@ -121,109 +81,15 @@ Currently, Pulsar supports the following complex types: | `keyvalue` | Represents a complex type of a key/value pair. | | `struct` | Handles structured data. It supports `AvroBaseStructSchema` and `ProtobufNativeSchema`. | -#### keyvalue - -`Keyvalue` schema helps applications define schemas for both key and value. +#### `keyvalue` schema -For `SchemaInfo` of `keyvalue` schema, Pulsar stores the `SchemaInfo` of key schema and the `SchemaInfo` of value schema together. +`Keyvalue` schema helps applications define schemas for both key and value. Pulsar stores the `SchemaInfo` of key schema and the `SchemaInfo` of value schema together. -Pulsar provides the following methods to encode a key/value pair in messages: +You can choose the encoding type when constructing the key/value schema.: +* `INLINE` - Key/value pairs are encoded together in the message payload. +* `SEPARATED` - see [Construct a key/value schema](schema-get-started.md#construct-a-keyvalue-schema). Review Comment: Agree. Will leave it to the next round of content review/revise because this PR focuses more on the information architecture changes. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
