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

Method __setstate__

join/LSH/datasketch/storage.py:791–798  ·  view source on GitHub ↗

Set the state by reconnecting ephemeral objects. :param dict[str, any] state: the state to restore

(self, state)

Source from the content-addressed store, hash-verified

789 return state
790
791 def __setstate__(self, state):
792 """
793 Set the state by reconnecting ephemeral objects.
794
795 :param dict[str, any] state: the state to restore
796 """
797 self.__dict__ = state
798 self.__init__(self._config, name=self._name, buffer_size=self._buffer_size)
799
800
801 class CassandraListStorage(OrderedStorage, CassandraStorage):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.95

Tested by

no test coverage detected