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

Method is_empty

join/LSH/datasketch/lsh.py:287–292  ·  view source on GitHub ↗

Returns: bool: Check if the index is empty.

(self)

Source from the content-addressed store, hash-verified

285 # self.keys.remove(key)
286
287 def is_empty(self):
288 '''
289 Returns:
290 bool: Check if the index is empty.
291 '''
292 return any(t.size() == 0 for t in self.hashtables)
293
294 def _byteswap(self, hs):
295 return bytes(hs.byteswap().data)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected