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

Method empty_buffer

join/LSH/datasketch/storage.py:508–516  ·  view source on GitHub ↗

Empty the buffer of statements and parameters.

(self)

Source from the content-addressed store, hash-verified

506 self.empty_buffer()
507
508 def empty_buffer(self):
509 """
510 Empty the buffer of statements and parameters.
511 """
512 # copy the underlying list in a python2/3 compatible way
513 buffer = list(self._statements_and_parameters)
514 # delete the actual elements in a python2/3 compatible way
515 del self._statements_and_parameters[:]
516 self._execute(buffer)
517
518 def insert(self, key, vals, buffer=False):
519 """

Callers 1

_bufferMethod · 0.95

Calls 1

_executeMethod · 0.95

Tested by

no test coverage detected