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

BEAM-405 - Fixes inefficient use of keySet iterator instead of entrySet iterator #587

Closed
wants to merge 1 commit into from

Conversation

lucasallan
Copy link
Contributor

BiggQueryIO$StreamingWriteFn.finishBundle: Fixes inefficient use of keySet iterator instead of entrySet iterator.

More info: https://issues.apache.org/jira/browse/BEAM-405

…et iterator.

BiggQueryIO$StreamingWriteFn.finishBundle: Fixes inefficient use of keySet iterator instead of entrySet iterator.
@lukecwik
Copy link
Member

lukecwik commented Jul 6, 2016

R: @lukecwik

for (Map.Entry<String, List<TableRow>> entry : tableRows.entrySet()) {
TableReference tableReference = getOrCreateTable(options, entry.getKey());
flushRows(client, tableReference, entry.getValue(),
uniqueIdsForTableRows.get(entry.getKey()), options);
Copy link
Member

Choose a reason for hiding this comment

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

I'll fix up this minor spacing issue on merge.

@lukecwik
Copy link
Member

lukecwik commented Jul 6, 2016

LGTM

@asfgit asfgit closed this in 8147037 Jul 6, 2016
johnjcasey pushed a commit to johnjcasey/beam that referenced this pull request Feb 8, 2023
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