MCPcopy
hub / github.com/dask/dask / keys

Method keys

dask/highlevelgraph.py:572–578  ·  view source on GitHub ↗

Get all keys of all the layers. This will in many cases materialize layers, which makes it a relatively expensive operation. See :meth:`get_all_external_keys` for a faster alternative.

(self)

Source from the content-addressed store, hash-verified

570 return out
571
572 def keys(self) -> KeysView:
573 """Get all keys of all the layers.
574
575 This will in many cases materialize layers, which makes it a relatively
576 expensive operation. See :meth:`get_all_external_keys` for a faster alternative.
577 """
578 return self.to_dict().keys()
579
580 def get_all_external_keys(self) -> set[Key]:
581 """Get all output keys of all layers

Callers 9

get_all_dependenciesMethod · 0.95
get_output_keysMethod · 0.45
cullMethod · 0.45
get_output_keysMethod · 0.45
cullMethod · 0.45
cull_layersMethod · 0.45
validateMethod · 0.45
register_highlevelgraphFunction · 0.45

Calls 1

to_dictMethod · 0.95

Tested by

no test coverage detected