Exports data as an Apache Arrow IPC (Feather v2) file using pyarrow.
Builds a RecordBatch from column data and writes it as an IPC file format. Column types are inferred by pyarrow from the actual values. Rows are buffered in memory and the file is written when CloseFile is called.
pyarrow (listed in requirements.txt)from ObjDataExportArrow import ObjExportApi
exporter = ObjExportApi()
exporter.OpenFile("/tmp/output.arrow")
exporter.WriteHeader(["Name", "Score"])
exporter.WriteData([["Alice", 95], ["Bob", 82]])
exporter.CloseFile()
| Method | Description |
|---|---|
OpenFile(filename) |
Set output path and reset row buffer |
WriteHeader(fields) |
Store column names and track redact columns |
WriteData(data) |
Buffer rows (list of lists) with redaction applied |
CloseFile() |
Build RecordBatch and write IPC file |
EscapeCSV(val) |
No-op passthrough |
DefaultExtension() |
Returns "arrow" |