pyarrow.StreamWriter

class pyarrow.StreamWriter(sink, schema)[source]

Writer for the Arrow streaming binary format

Parameters:
  • sink (str, pyarrow.NativeFile, or file-like Python object) – Either a file path, or a writeable file object
  • schema (pyarrow.Schema) – The Arrow schema for data to be written to the file
__init__(sink, schema)[source]

Methods

__init__(sink, schema)
close(self)
write_batch(self, RecordBatch batch)