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