New kV representation and more flexible extension for data Entry data structure#30
Open
liuboyan69 wants to merge 3 commits intoopenmessaging:masterfrom
Open
New kV representation and more flexible extension for data Entry data structure#30liuboyan69 wants to merge 3 commits intoopenmessaging:masterfrom
liuboyan69 wants to merge 3 commits intoopenmessaging:masterfrom
Conversation
Enhanced Semantic Expression of the DataEntry.In order to better characterize KV data structure, key and headers fields is added in DataEntry. At the same time, the function of value checking and string parsing is also added. Better yet, it provide basic and custom types for user selection and extension. The old structure as the STRUCT type of the new structure, you can use it as new way and more easier. We change SCHEMA to META because we think META is better than SCHEMA in approaching the meaning expressed by this object. We added the headers attribute to correspond to userProperty in Massage of RocketMQ. We provide a variety of static construction methods and static variables for all type of metas, to facilitate users to quickly select the required meta types. We also provides a fast conversion method for object data, so that users can get the required data safely and quickly.
…connect # Conflicts: # connector/src/main/java/io/openmessaging/connector/api/data/DataEntry.java # connector/src/main/java/io/openmessaging/connector/api/data/DataEntryBuilder.java # connector/src/main/java/io/openmessaging/connector/api/data/Schema.java # connector/src/main/java/io/openmessaging/connector/api/data/SinkDataEntry.java # connector/src/main/java/io/openmessaging/connector/api/data/SourceDataEntry.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhanced Semantic Expression of the DataEntry.In order to better characterize KV data structure, key and headers fields is added in DataEntry. At the same time, the function of value checking and string parsing is also added. Better yet, it provide basic and custom types for user selection and extension.
The old structure as the STRUCT type of the new structure, you can use it as new way and more easier.
We change SCHEMA to META because we think META is better than SCHEMA in approaching the meaning expressed by this object.
We added the headers attribute to correspond to userProperty in Massage of RocketMQ.
We provide a variety of static construction methods and static variables for all type of metas, to facilitate users to quickly select the required meta types. We also provides a fast conversion method for object data, so that users can get the required data safely and quickly.