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

Method list_flights

python/examples/flight/server.py:65–73  ·  view source on GitHub ↗
(self, context, criteria)

Source from the content-addressed store, hash-verified

63 table.num_rows, data_size)
64
65 def list_flights(self, context, criteria):
66 for key, table in self.flights.items():
67 if key[1] is not None:
68 descriptor = \
69 pyarrow.flight.FlightDescriptor.for_command(key[1])
70 else:
71 descriptor = pyarrow.flight.FlightDescriptor.for_path(*key[2])
72
73 yield self._make_flight_info(key, descriptor, table)
74
75 def get_flight_info(self, context, descriptor):
76 key = FlightServer.descriptor_to_key(descriptor)

Callers 3

test_list_flightsMethod · 0.45
test_successMethod · 0.45
list_flightsFunction · 0.45

Calls 1

_make_flight_infoMethod · 0.95

Tested by 2

test_list_flightsMethod · 0.36
test_successMethod · 0.36