| 117 | |
| 118 | |
| 119 | class RecordBatchFileWriter(lib._RecordBatchFileWriter): |
| 120 | |
| 121 | __doc__ = f"""Writer to create the Arrow binary file format |
| 122 | |
| 123 | {_ipc_file_writer_class_doc}""" |
| 124 | |
| 125 | def __init__(self, sink, schema, *, options=None, metadata=None): |
| 126 | options = _get_legacy_format_default(options) |
| 127 | self._open(sink, schema, options=options, metadata=metadata) |
| 128 | |
| 129 | |
| 130 | def _get_legacy_format_default(options): |