| 21 | namespace flight { |
| 22 | |
| 23 | std::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 |
nothing calls this directly
no outgoing calls
no test coverage detected