Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
215
class
EchoFlightServer(FlightServerBase):
Callers
1
do_get
Method · 0.95
Calls
2
to_batches
Method · 0.80
pack
Method · 0.45
Tested by
no test coverage detected