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

Method number_batches

python/pyarrow/tests/test_flight.py:209–212  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

207
208 @staticmethod
209 def number_batches(table):
210 for idx, batch in enumerate(table.to_batches()):
211 buf = struct.pack('<i', idx)
212 yield batch, buf
213
214
215class EchoFlightServer(FlightServerBase):

Callers 1

do_getMethod · 0.95

Calls 2

to_batchesMethod · 0.80
packMethod · 0.45

Tested by

no test coverage detected