@@ -370,8 +370,7 @@ YieldIncrementalResults(data, errors, incrementalDataRecords):
370
370
- Append {GetCompletedEntry(parent, errors)} to {completed}.
371
371
- Remove {node} and all of its descendant nodes from {graph}, except for
372
372
any descendant Incremental Data Record nodes with other parents.
373
- - Let {hasNext} be {false} if {graph} is empty; otherwise, {true}.
374
- - Yield an unordered map containing {completed} and {hasNext}.
373
+ - Yield the result of {GetIncrementalResult(graph, completed)}.
375
374
- Continue to the next completed Pending Incremental Data node.
376
375
- Replace {node} in {graph} with a new node corresponding to the Completed
377
376
Incremental Data for {result}.
@@ -444,15 +443,15 @@ GetPendingEntry(pendingResults):
444
443
- Append {pendingEntry} to {pending}.
445
444
- Return {pending}.
446
445
447
- GetIncrementalResult(graph, incremental, completed , pending):
446
+ GetIncrementalResult(graph, completed, incremental , pending):
448
447
449
448
- Let {hasNext} be {false} if {graph} is empty, otherwise, {true}.
450
449
- Let {incrementalResult} be an unordered map containing {hasNext}.
451
- - If {incremental} is not empty:
450
+ - If {incremental} is provided and not empty:
452
451
- Set the corresponding entry on {incrementalResult} to {incremental}.
453
452
- If {completed} is not empty:
454
453
- Set the corresponding entry on {incrementalResult} to {completed}.
455
- - If {pending} is not empty:
454
+ - If {pending} is provided and not empty:
456
455
- Set the corresponding entry on {incrementalResult} to {pending}.
457
456
- Return {incrementalResult}.
458
457
0 commit comments