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

Method GetFlightInfo

c_glib/arrow-flight-glib/server.cpp:1090–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088 }
1089
1090 arrow::Status
1091 GetFlightInfo(const arrow::flight::ServerCallContext &context,
1092 const arrow::flight::FlightDescriptor &request,
1093 std::unique_ptr<arrow::flight::FlightInfo> *info) override
1094 {
1095 auto gacontext = gaflight_server_call_context_new_raw(&context);
1096 auto garequest = gaflight_descriptor_new_raw(&request);
1097 GError *gerror = nullptr;
1098 auto gainfo =
1099 gaflight_server_get_flight_info(gaserver_, gacontext, garequest, &gerror);
1100 g_object_unref(garequest);
1101 g_object_unref(gacontext);
1102 if (gerror) {
1103 return garrow_error_to_status(gerror,
1104 arrow::StatusCode::UnknownError,
1105 "[flight-server][get-flight-info]");
1106 }
1107 *info = std::make_unique<arrow::flight::FlightInfo>(*gaflight_info_get_raw(gainfo));
1108 g_object_unref(gainfo);
1109 return arrow::Status::OK();
1110 }
1111
1112 arrow::Status
1113 DoGet(const arrow::flight::ServerCallContext &context,

Callers 1

Calls 6

garrow_error_to_statusFunction · 0.85
gaflight_info_get_rawFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected