ArrowFileWriter.writeRecordBatch

bool writeRecordBatch(arrow.record_batch.RecordBatch recordBatch)

Write a record batch into the buffered row group.

Multiple record batches can be written into the same row group through this function.

[parquet.writer_properties.WriterProperties.getMaxRowGroupLength] is respected and a new row group will be created if the current row group exceeds the limit.

Record batches get flushed to the output stream once gparquet_file_writer_new_buffered_row_group() or gparquet_file_writer_close() is called.

Parameters

recordBatchA record batch to be written.

Returns

true on success, false if there was an error.

Throws

[ErrorWrap]