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

Function gaflight_client_get_flight_info

c_glib/arrow-flight-glib/client.cpp:935–954  ·  view source on GitHub ↗

* gaflight_client_get_flight_info: * @client: A #GAFlightClient. * @descriptor: A #GAFlightDescriptor to be processed. * @options: (nullable): A #GAFlightCallOptions. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The returned #GAFlightInfo on * success, %NULL on error. * * Since: 9.0.0 */

Source from the content-addressed store, hash-verified

933 * Since: 9.0.0
934 */
935GAFlightInfo *
936gaflight_client_get_flight_info(GAFlightClient *client,
937 GAFlightDescriptor *descriptor,
938 GAFlightCallOptions *options,
939 GError **error)
940{
941 auto flight_client = gaflight_client_get_raw(client);
942 auto flight_descriptor = gaflight_descriptor_get_raw(descriptor);
943 arrow::flight::FlightCallOptions flight_default_options;
944 auto flight_options = &flight_default_options;
945 if (options) {
946 flight_options = gaflight_call_options_get_raw(options);
947 }
948 auto result = flight_client->GetFlightInfo(*flight_options, *flight_descriptor);
949 if (!garrow::check(error, result, "[flight-client][get-flight-info]")) {
950 return NULL;
951 }
952 auto flight_info = std::move(*result);
953 return gaflight_info_new_raw(flight_info.release());
954}
955
956/**
957 * gaflight_client_do_get:

Callers

nothing calls this directly

Calls 7

gaflight_client_get_rawFunction · 0.85
gaflight_info_new_rawFunction · 0.85
checkFunction · 0.50
GetFlightInfoMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected