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

Method __init__

r/inst/demo_flight_server.py:32–39  ·  view source on GitHub ↗
(self, host="localhost", port=5005)

Source from the content-addressed store, hash-verified

30
31class 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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected