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

Method _get_next_row

couchbase/search.py:111–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 return self
110
111 def _get_next_row(self):
112 if self.done_streaming is True:
113 return
114
115 try:
116 row = next(self._streaming_result)
117 except StopIteration:
118 # @TODO: PYCBC-1524
119 row = next(self._streaming_result)
120
121 if isinstance(row, PycbcCoreException):
122 raise ErrorMapper.build_exception(row)
123
124 # should only be None once query request is complete and _no_ errors found
125 if row is None:
126 raise StopIteration
127
128 return self._deserialize_row(row)
129
130 def __next__(self):
131 return stream_next(self)

Callers

nothing calls this directly

Calls 2

build_exceptionMethod · 0.80
_deserialize_rowMethod · 0.80

Tested by

no test coverage detected