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

Method ListFlights

cpp/src/arrow/flight/test_flight_server.cc:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85Status TestFlightServer::ListFlights(const ServerCallContext& context,
86 const Criteria* criteria,
87 std::unique_ptr<FlightListing>* listings) {
88 std::vector<FlightInfo> flights = ExampleFlightInfo();
89 if (criteria && criteria->expression != "") {
90 // For test purposes, if we get criteria, return no results
91 flights.clear();
92 }
93 *listings = std::make_unique<SimpleFlightListing>(flights);
94 return Status::OK();
95}
96
97Status TestFlightServer::GetFlightInfo(const ServerCallContext& context,
98 const FlightDescriptor& request,

Callers

nothing calls this directly

Calls 3

ExampleFlightInfoFunction · 0.85
OKFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected