Skip to content

Comments

DP-5330-Add example codes#228

Merged
DeleTaylor merged 2 commits intomasterfrom
DP-5330-Create-example-code
Nov 20, 2025
Merged

DP-5330-Add example codes#228
DeleTaylor merged 2 commits intomasterfrom
DP-5330-Create-example-code

Conversation

@chlocarlos
Copy link
Contributor

No description provided.

import com.northconcepts.datapipeline.job.Job;
import com.northconcepts.datapipeline.memory.MemoryReader;

public class GroupByAndCollectValues {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Can we rename this to AddValuesToAnArrayUsingGroupByReader?
  2. Any chance we can make this simpler? Maybe use just one GroupByReader and one Job.run? It's hard to see the example as-is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Renamed GroupByAndCollectValues.java to AddValuesToAnArrayUsingGroupByReader.java and simplified the example to focus on grouping by category, summing prices, and collecting products into an array. Removed duplicate and distinct product collection logic for clarity.
@DeleTaylor DeleTaylor merged commit 4fe9c48 into master Nov 20, 2025
1 check passed
@DeleTaylor DeleTaylor deleted the DP-5330-Create-example-code branch November 20, 2025 10:57
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.

2 participants