(self, host="localhost", port=5005)
| 30 | |
| 31 | class DemoFlightServer(pyarrow.flight.FlightServerBase): |
| 32 | def __init__(self, host="localhost", port=5005): |
| 33 | if isinstance(port, float): |
| 34 | # Because R is looser with integer vs. float |
| 35 | port = int(port) |
| 36 | location = f"grpc+tcp://{host}:{port}" |
| 37 | super(DemoFlightServer, self).__init__(location) |
| 38 | self.flights = {} |
| 39 | self.host = host |
| 40 | |
| 41 | @classmethod |
| 42 | def descriptor_to_key(self, descriptor): |
nothing calls this directly
no outgoing calls
no test coverage detected