MCPcopy Create free account
hub / github.com/apache/arrow / make_serialized

Function make_serialized

python/pyarrow/tests/test_cffi.py:119–124  ·  view source on GitHub ↗
(schema, batches)

Source from the content-addressed store, hash-verified

117
118
119def make_serialized(schema, batches):
120 with pa.BufferOutputStream() as sink:
121 with pa.ipc.new_stream(sink, schema) as out:
122 for batch in batches:
123 out.write(batch)
124 return sink.getvalue()
125
126
127@needs_cffi

Callers 2

make_ipc_stream_readerFunction · 0.85

Calls 2

BufferOutputStreamMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected