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

Method exchange_do_get

python/pyarrow/tests/test_flight.py:482–488  ·  view source on GitHub ↗

Emulate DoGet with DoExchange.

(self, context, reader, writer)

Source from the content-addressed store, hash-verified

480 f"Unknown command: {descriptor.command}")
481
482 def exchange_do_get(self, context, reader, writer):
483 """Emulate DoGet with DoExchange."""
484 data = pa.Table.from_arrays([
485 pa.array(range(0, 10 * 1024))
486 ], names=["a"])
487 writer.begin(data.schema)
488 writer.write_table(data)
489
490 def exchange_do_put(self, context, reader, writer):
491 """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