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

Method __contains__

join/LSH/datasketch/lshensemble.py:247–249  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

245
246 # index中是否存在键值key
247 def __contains__(self, key):
248 return any(any(key in index[r] for r in index)
249 for index in self.indexes)
250
251 # index是否为空
252 def is_empty(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected