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

Method _get_next_row

couchbase/analytics.py:71–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 return self
70
71 def _get_next_row(self):
72 if self.done_streaming is True:
73 return
74
75 try:
76 row = next(self._streaming_result)
77 except StopIteration:
78 # @TODO: PYCBC-1524
79 row = next(self._streaming_result)
80
81 if isinstance(row, PycbcCoreException):
82 raise ErrorMapper.build_exception(row)
83
84 # should only be None once query request is complete and _no_ errors found
85 if row is None:
86 raise StopIteration
87
88 return self.serializer.deserialize(row)
89
90 def __next__(self):
91 return stream_next(self)

Callers

nothing calls this directly

Calls 2

build_exceptionMethod · 0.80
deserializeMethod · 0.45

Tested by

no test coverage detected