Finish writing and return the RecordBatch. Returns: An Arrow RecordBatch containing all written rows.
(self)
| 459 | self._num_rows += 1 |
| 460 | |
| 461 | def finish(self): |
| 462 | """ |
| 463 | Finish writing and return the RecordBatch. |
| 464 | |
| 465 | Returns: |
| 466 | An Arrow RecordBatch containing all written rows. |
| 467 | """ |
| 468 | columns = [appender.finish() for appender in self._column_appenders] |
| 469 | return pa.RecordBatch.from_arrays(columns, schema=self._schema) |
| 470 | |
| 471 | def reset(self): |
| 472 | """Reset the writer for reuse.""" |
no outgoing calls