MCPcopy Create free account
hub / github.com/apple/foundationdb / empty

Method empty

layers/containers/vector.py:170–172  ·  view source on GitHub ↗

Test whether the Vector is empty.

(self, tr=None)

Source from the content-addressed store, hash-verified

168 self._set(index, val, self._to_transaction(tr))
169
170 def empty(self, tr=None):
171 """Test whether the Vector is empty."""
172 return self._size(self._to_transaction(tr)) == 0
173
174 def resize(self, length, tr=None):
175 """Grow or shrink the size of the Vector."""

Callers 1

vector_testFunction · 0.95

Calls 2

_sizeMethod · 0.95
_to_transactionMethod · 0.95

Tested by

no test coverage detected