MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / __next__

Method __next__

couchbase/kv_range_scan.py:49–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 return self
48
49 def __next__(self):
50 try:
51 return self._get_next_row()
52 # We can stop iterator when we receive RangeScanCompletedException
53 except RangeScanCompletedException:
54 self._done_streaming = True
55 raise StopIteration
56 except StopIteration:
57 self._done_streaming = True
58 raise
59 except CouchbaseException as ex:
60 raise ex
61 except Exception as ex:
62 exc_cls = PYCBC_ERROR_MAP.get(ExceptionMap.InternalSDKException.value, CouchbaseException)
63 excptn = exc_cls(str(ex))
64 raise excptn

Callers

nothing calls this directly

Calls 2

_get_next_rowMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected