Update the indexes after a flushing of rows.
(self, wbuf_ra: np.ndarray, lenrows: int)
| 2315 | raise IndexError(f"Invalid index or slice: {key!r}") |
| 2316 | |
| 2317 | def _save_buffered_rows(self, wbuf_ra: np.ndarray, lenrows: int) -> None: |
| 2318 | """Update the indexes after a flushing of rows.""" |
| 2319 | self._open_append(wbuf_ra) |
| 2320 | self._append_records(lenrows) |
| 2321 | self._close_append() |
| 2322 | if self.indexed: |
| 2323 | self._unsaved_indexedrows += lenrows |
| 2324 | # The table caches for indexed queries are dirty now |
| 2325 | self._dirtycache = True |
| 2326 | if self.autoindex: |
| 2327 | # Flush the unindexed rows |
| 2328 | self.flush_rows_to_index(_lastrow=False) |
| 2329 | else: |
| 2330 | # All the columns are dirty now |
| 2331 | self._mark_columns_as_dirty(self.colpathnames) |
| 2332 | |
| 2333 | def append(self, rows: list | np.ndarray) -> None: |
| 2334 | """Append a sequence of rows to the end of the table. |
no test coverage detected