| 7 | |
| 8 | |
| 9 | class Universe: |
| 10 | lineage: SetOnceProperty[column.Lineage] = SetOnceProperty() |
| 11 | |
| 12 | def subset(self) -> Universe: |
| 13 | from pathway.internals.parse_graph import G |
| 14 | |
| 15 | return G.universe_solver.get_subset(self) |
| 16 | |
| 17 | def superset(self) -> Universe: |
| 18 | from pathway.internals.parse_graph import G |
| 19 | |
| 20 | return G.universe_solver.get_superset(self) |
| 21 | |
| 22 | def is_subset_of(self, other: Universe) -> bool: |
| 23 | from pathway.internals.parse_graph import G |
| 24 | |
| 25 | return G.universe_solver.query_is_subset(self, other) |
| 26 | |
| 27 | def is_equal_to(self, other: Universe) -> bool: |
| 28 | return self.is_subset_of(other) and other.is_subset_of(self) |
| 29 | |
| 30 | def is_empty(self) -> bool: |
| 31 | from pathway.internals.parse_graph import G |
| 32 | |
| 33 | return G.universe_solver.query_is_empty(self) |
| 34 | |
| 35 | def register_as_empty(self, no_warn: bool = True) -> None: |
| 36 | from pathway.internals.parse_graph import G |
| 37 | |
| 38 | G.universe_solver.register_as_empty(self, no_warn=no_warn) |
no test coverage detected