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

Method GetSchema

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

Source from the content-addressed store, hash-verified

401}
402
403Status TestFlightServer::GetSchema(const ServerCallContext& context,
404 const FlightDescriptor& request,
405 std::unique_ptr<SchemaResult>* schema) {
406 std::vector<FlightInfo> flights = ExampleFlightInfo();
407
408 for (const auto& info : flights) {
409 if (info.descriptor().Equals(request)) {
410 *schema = std::make_unique<SchemaResult>(info.serialized_schema());
411 return Status::OK();
412 }
413 }
414 return Status::Invalid("Flight not found: ", request.ToString());
415}
416
417} // namespace arrow::flight

Callers

nothing calls this directly

Calls 5

ExampleFlightInfoFunction · 0.85
OKFunction · 0.50
InvalidFunction · 0.50
EqualsMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected