MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / itemcounts

Method itemcounts

join/LSH/datasketch/storage.py:230–235  ·  view source on GitHub ↗

Returns a dict where the keys are the keys of the container. The values are the *lengths* of the value sequences stored in this container.

(self, **kwargs)

Source from the content-addressed store, hash-verified

228 return len(self._dict)
229
230 def itemcounts(self, **kwargs):
231 '''Returns a dict where the keys are the keys of the container.
232 The values are the *lengths* of the value sequences stored
233 in this container.
234 '''
235 return {k: len(v) for k, v in self._dict.items()}
236
237 def has_key(self, key):
238 return key in self._dict

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected