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

Method exchange_do_get

python/pyarrow/tests/test_flight.py:480–486  ·  view source on GitHub ↗

Emulate DoGet with DoExchange.

(self, context, reader, writer)

Source from the content-addressed store, hash-verified

478 f"Unknown command: {descriptor.command}")
479
480 def exchange_do_get(self, context, reader, writer):
481 """Emulate DoGet with DoExchange."""
482 data = pa.Table.from_arrays([
483 pa.array(range(0, 10 * 1024))
484 ], names=["a"])
485 writer.begin(data.schema)
486 writer.write_table(data)
487
488 def exchange_do_put(self, context, reader, writer):
489 """Emulate DoPut with DoExchange."""

Callers 1

do_exchangeMethod · 0.95

Calls 3

arrayMethod · 0.45
beginMethod · 0.45
write_tableMethod · 0.45

Tested by

no test coverage detected