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

Method _get

couchbase/datastructures.py:683–697  ·  view source on GitHub ↗

Get the entire set.

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

Source from the content-addressed store, hash-verified

681 raise
682
683 def _get(self, parent_span: Optional[WrappedSpan] = None) -> List[Any]:
684 """
685 Get the entire set.
686 """
687 op_type = KeyValueOperationType.Get
688 with ObservableRequestHandler(op_type, self._impl.observability_instruments) as obs_handler:
689 req, transcoder = self._impl.request_builder.build_get_request(self._key,
690 obs_handler,
691 parent_span=parent_span)
692 return self._execute_op(self._impl.get,
693 req,
694 obs_handler,
695 parent_span=parent_span,
696 create_type=True,
697 transcoder=transcoder)
698
699 def add(self, value: Any) -> bool:
700 """Adds a new item to the set. Returning whether the item already existed in the set or not.

Callers 3

removeMethod · 0.95
containsMethod · 0.95
valuesMethod · 0.95

Calls 3

_execute_opMethod · 0.95
build_get_requestMethod · 0.80

Tested by

no test coverage detected