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

Method get_flight_info

python/examples/flight/server.py:75–80  ·  view source on GitHub ↗
(self, context, descriptor)

Source from the content-addressed store, hash-verified

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)
77 if key in self.flights:
78 table = self.flights[key]
79 return self._make_flight_info(key, descriptor, table)
80 raise KeyError('Flight not found.')
81
82 def do_put(self, context, descriptor, reader, writer):
83 key = FlightServer.descriptor_to_key(descriptor)

Callers 2

test_get_flight_infoMethod · 0.45
get_flightFunction · 0.45

Calls 3

_make_flight_infoMethod · 0.95
KeyErrorFunction · 0.85
descriptor_to_keyMethod · 0.45

Tested by 1

test_get_flight_infoMethod · 0.36