Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
122 views
in Technique[技术] by (71.8m points)

Combine multiple table entries in java with kafka streams

so i have a table that contains text entries with a text type and a foreign key. This table is streamed into kafka.

Like:

Text - Type - Foreign Key

Example Text - 2 - 3021

I now want to group the table entries per foreign key and fill them into new objects. This objects should contain text entries of specific text types per foreign key.

Like for an example, the new object should contain the foreign key and the texts for type 2,4 and 5 for that foreign key safed into specific variables per text type.

Foreign Key - TextDescriptionType - TextSummaryType - TextAdditionType

3021 - Example description - Example dummary - Example addition

I have tried to group the tables and aggregate them after that, but i couldn't get it working for this specific case and i couldn't find any similar use case in the web. Same case for joining the same ktable.

I would like to know if anyone has the same use case and what he did to approach it.

Thanks for reading and i am sorry if this question was already asked, but i couldn't find a similar one.

question from:https://stackoverflow.com/questions/65871157/combine-multiple-table-entries-in-java-with-kafka-streams

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...