MCPcopy
hub / github.com/pathwaycom/pathway / clear

Method clear

python/pathway/internals/parse_graph.py:203–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 return self.error_log_stack[0]
202
203 def clear(self) -> None:
204 self.node_id_sequence = itertools.count()
205 global_scope = Scope(self)
206 self._scope_stack = [global_scope]
207 self.scopes = [global_scope]
208 self.universe_solver = UniverseSolver()
209 self.cache = {}
210 self.static_tables_cache = {}
211 self.error_log_stack = []
212 self.mark_all_operators_as_used()
213
214 def mark_all_operators_as_used(self) -> None:
215 self.unused_operators = False

Callers 15

__init__Method · 0.95
parse_graph_teardownFunction · 0.80
build_serverMethod · 0.80
runMethod · 0.80
on_time_endFunction · 0.80
_flush_bufferMethod · 0.80
__call__Method · 0.80
pipelineFunction · 0.80
test_sqlite_all_typesFunction · 0.80
iterationFunction · 0.80
test_deltalake_roundtripFunction · 0.80

Calls 4

UniverseSolverClass · 0.90
ScopeClass · 0.85
countMethod · 0.80

Tested by 15

parse_graph_teardownFunction · 0.64
__call__Method · 0.64
pipelineFunction · 0.64
test_sqlite_all_typesFunction · 0.64
iterationFunction · 0.64
test_deltalake_roundtripFunction · 0.64
run_pathway_programFunction · 0.64
write_dataFunction · 0.64
check_entries_countFunction · 0.64