(self, context: fl.ServerCallContext, criteria: bytes)
| 107 | @inject_user_details_decorator |
| 108 | @arrow_server_error_handling_decorator |
| 109 | def list_flights(self, context: fl.ServerCallContext, criteria: bytes): |
| 110 | for key, table in self.flights.items(): |
| 111 | if key[1] is not None: |
| 112 | descriptor = fl.FlightDescriptor.for_command(key[1]) |
| 113 | else: |
| 114 | descriptor = fl.FlightDescriptor.for_path(*key[2]) |
| 115 | |
| 116 | yield self._make_flight_info(key, descriptor) |
| 117 | |
| 118 | @inject_user_details_decorator |
| 119 | @arrow_server_error_handling_decorator |