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

Function ToString

cpp/src/arrow/flight/middleware.cc:23–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace flight {
22
23std::string ToString(FlightMethod method) {
24 // Technically, we can get this via Protobuf reflection, but in
25 // practice we'd have to hardcode the method names to look up the
26 // method descriptor...
27 switch (method) {
28 case FlightMethod::Handshake:
29 return "Handshake";
30 case FlightMethod::ListFlights:
31 return "ListFlights";
32 case FlightMethod::GetFlightInfo:
33 return "GetFlightInfo";
34 case FlightMethod::GetSchema:
35 return "GetSchema";
36 case FlightMethod::DoGet:
37 return "DoGet";
38 case FlightMethod::DoPut:
39 return "DoPut";
40 case FlightMethod::DoAction:
41 return "DoAction";
42 case FlightMethod::ListActions:
43 return "ListActions";
44 case FlightMethod::DoExchange:
45 return "DoExchange";
46 case FlightMethod::Invalid:
47 default:
48 return "(unknown Flight method)";
49 }
50}
51
52} // namespace flight
53} // namespace arrow

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected