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

Method items

couchbase/datastructures.py:614–624  ·  view source on GitHub ↗

Provides mechanism to loop over the entire map. Returns: Generator: A generator expression for the map

(self)

Source from the content-addressed store, hash-verified

612 pass
613
614 def items(self) -> Generator:
615 """Provides mechanism to loop over the entire map.
616
617 Returns:
618 Generator: A generator expression for the map
619 """
620 op_type = DatastructureOperationType.MapItems
621 with ObservableRequestHandler(op_type, self._impl.observability_instruments) as ds_obs_handler:
622 ds_obs_handler.create_kv_span(self._impl._request_builder._collection_dtls.get_details_as_dict())
623 map_ = self._get(parent_span=ds_obs_handler.wrapped_span)
624 return ((k, v) for k, v in map_.content_as[dict].items())
625
626
627class CouchbaseSet:

Callers 15

merge_op_overridesMethod · 0.45
configure_generatorMethod · 0.45
as_dictMethod · 0.45
as_dictMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 4

_getMethod · 0.95
get_details_as_dictMethod · 0.80
create_kv_spanMethod · 0.45

Tested by

no test coverage detected