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

Method _get

couchbase/datastructures.py:416–430  ·  view source on GitHub ↗

Get the entire map.

(self, parent_span: Optional[WrappedSpan] = None)

Source from the content-addressed store, hash-verified

414 raise
415
416 def _get(self, parent_span: Optional[WrappedSpan] = None) -> Dict[str, Any]:
417 """
418 Get the entire map.
419 """
420 op_type = KeyValueOperationType.Get
421 with ObservableRequestHandler(op_type, self._impl.observability_instruments) as obs_handler:
422 req, transcoder = self._impl.request_builder.build_get_request(self._key,
423 obs_handler,
424 parent_span=parent_span)
425 return self._execute_op(self._impl.get,
426 req,
427 obs_handler,
428 parent_span=parent_span,
429 create_type=True,
430 transcoder=transcoder)
431
432 def add(self, mapkey: str, value: Any) -> None:
433 """Sets a specific key to the specified value in the map.

Callers 4

keysMethod · 0.95
valuesMethod · 0.95
get_allMethod · 0.95
itemsMethod · 0.95

Calls 3

_execute_opMethod · 0.95
build_get_requestMethod · 0.80

Tested by

no test coverage detected