def METHOD_NAME(self, rows):
    for row in rows:
        if isinstance(row, Log):
            self.logs[row.id] = row.values.copy()
    for row in rows:
        if isinstance(row, LogChunk):
            lines = self.log_lines.setdefault(row.logid, [])
            # make sure there are enough slots in the list
            if len(lines) < row.last_line + 1:
                lines.append([None] * (row.last_line + 1 - len(lines)))
            row_lines = row.content.decode('utf-8').split('\n')
            lines[row.first_line:row.last_line + 1] = row_lines