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

Index hydration partitioned source ids #484

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

gnawf
Copy link
Collaborator

@gnawf gnawf commented Dec 11, 2023

Based on #482

@gnawf gnawf force-pushed the index-hydration-partitioned-source-ids branch 2 times, most recently from 564e126 to 365410f Compare December 14, 2023 03:34
@gnawf gnawf force-pushed the index-hydration-partitioned-source-ids branch from 365410f to af4687d Compare December 18, 2023 22:06
@@ -27,22 +51,28 @@ internal object NadelNewBatchHydrationInputBuilder {
instruction: NadelBatchHydrationFieldInstruction,
hydrationField: ExecutableNormalizedField,
sourceIds: List<JsonNode>,
): List<Map<NadelHydrationActorInputDef, NormalizedInputValue>> {
): List<NadelHydrationArgumentsBatch> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Created an object to store the original type + the sourceIds that made up the batch.

sourceIds = chunk
.map {
JsonNode(it)
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This returns the source IDs used to create this batch.

@gnawf gnawf marked this pull request as ready for review December 18, 2023 22:14
@gnawf gnawf merged commit 8f761d8 into master Dec 18, 2023
2 checks passed
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