MCPcopy Index your code
hub / github.com/pathwaycom/pathway / _output_rows

Function _output_rows

python/pathway/tests/test_persistence_iterate.py:359–365  ·  view source on GitHub ↗

Build the set of (event_time, data, chunk_start) representing full output state.

(events: dict, assignments: dict)

Source from the content-addressed store, hash-verified

357
358
359def _output_rows(events: dict, assignments: dict) -> set:
360 """Build the set of (event_time, data, chunk_start) representing full output state."""
361 rows = set()
362 for _eid, (event_time, _flag, data) in events.items():
363 cs = assignments[event_time]
364 rows.add((event_time, data, cs))
365 return rows
366
367
368def _compute_expected_diffs(old_rows: set, new_rows: set) -> set:

Calls 2

itemsMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected