Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TUBEMQ-451]Replace ConsumeTupleInfo with Tuple2 #349

Merged
merged 1 commit into from
Dec 15, 2020
Merged

[TUBEMQ-451]Replace ConsumeTupleInfo with Tuple2 #349

merged 1 commit into from
Dec 15, 2020

Conversation

gosonzhang
Copy link
Contributor

The current implementation of ConsumeTupleInfo can be completely replaced by Tuple2 to reduces duplicate class definitions.

@yuanboliu
Copy link
Member

+1
I rememeber apache common jar also has the implements of Tuple, not sure whether we can replace org.apache.tubemq.corebase.utils.Tuple2 with apache common Tuple

@gosonzhang
Copy link
Contributor Author

gosonzhang commented Dec 15, 2020

@yuanboliu

Yes, I know, the apache common jar includes Pair and Triple classes.

In this scenario, I just do a simple return result encapsulation, without much content, and don’t want to introduce a large class for a return value encapsulation class to make the system very bloated; at the same time, I think its scheme is too rigid, tuple can be 2-tuples, 3-tuples, 4-tuples, etc, if only Pair and Triple are allowed, this is not good for subsequent program definitions.

@gosonzhang gosonzhang merged commit d3d83dd into apache:TUBEMQ-452 Dec 15, 2020
@gosonzhang gosonzhang deleted the TUBEMQ-452 branch December 15, 2020 06:08
gosonzhang added a commit that referenced this pull request Dec 20, 2020
Co-authored-by: gosonzhang <gosonzhang@tencent.com>
EMsnap pushed a commit to EMsnap/incubator-tubemq that referenced this pull request Jan 7, 2021
Co-authored-by: gosonzhang <gosonzhang@tencent.com>
EMsnap pushed a commit to EMsnap/incubator-tubemq that referenced this pull request Jan 7, 2021
Co-authored-by: gosonzhang <gosonzhang@tencent.com>
yuanboliu pushed a commit that referenced this pull request Jan 29, 2021
Co-authored-by: gosonzhang <gosonzhang@tencent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants