MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / get_all

Method get_all

couchbase/datastructures.py:586–596  ·  view source on GitHub ↗

Retrieves the entire map. Returns: Dict[str, Any]: The entire CouchbaseMap.

(self)

Source from the content-addressed store, hash-verified

584 return list(map_.content_as[dict].values())
585
586 def get_all(self) -> Dict[str, Any]:
587 """Retrieves the entire map.
588
589 Returns:
590 Dict[str, Any]: The entire CouchbaseMap.
591 """
592 op_type = DatastructureOperationType.MapGetAll
593 with ObservableRequestHandler(op_type, self._impl.observability_instruments) as ds_obs_handler:
594 ds_obs_handler.create_kv_span(self._impl._request_builder._collection_dtls.get_details_as_dict())
595 map_ = self._get(parent_span=ds_obs_handler.wrapped_span)
596 return map_.content_as[dict]
597
598 def clear(self) -> None:
599 """Clears the map.

Callers

nothing calls this directly

Calls 4

_getMethod · 0.95
get_details_as_dictMethod · 0.80
create_kv_spanMethod · 0.45

Tested by

no test coverage detected