ArrowFileWriter.writeRecordBatch

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.

class ArrowFileWriter
bool
writeRecordBatch

Parameters

recordBatch arrow.record_batch.RecordBatch

A record batch to be written.

Return Value

Type: bool

true on success, false if there was an error.