in python/src/tablestore_for_agent_memory/util/tablestore_helper.py [0:0]
def __next__(self) -> Any:
if self.max_count is not None and 0 < self.max_count <= self.count:
raise StopIteration
if not self.row_list and self._has_next_batch():
self._fetch_next_batch()
if not self.row_list:
raise StopIteration
item = self.row_list.pop(0)
self.count += 1
return self.translate_function(item)