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

Function gaflight_descriptor_new_raw

c_glib/arrow-flight-glib/common.cpp:1432–1447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1430}
1431
1432GAFlightDescriptor *
1433gaflight_descriptor_new_raw(const arrow::flight::FlightDescriptor *flight_descriptor)
1434{
1435 GType gtype = GAFLIGHT_TYPE_DESCRIPTOR;
1436 switch (flight_descriptor->type) {
1437 case arrow::flight::FlightDescriptor::DescriptorType::PATH:
1438 gtype = GAFLIGHT_TYPE_PATH_DESCRIPTOR;
1439 break;
1440 case arrow::flight::FlightDescriptor::DescriptorType::CMD:
1441 gtype = GAFLIGHT_TYPE_COMMAND_DESCRIPTOR;
1442 break;
1443 default:
1444 break;
1445 }
1446 return GAFLIGHT_DESCRIPTOR(g_object_new(gtype, "descriptor", flight_descriptor, NULL));
1447}
1448
1449arrow::flight::FlightDescriptor *
1450gaflight_descriptor_get_raw(GAFlightDescriptor *descriptor)

Calls

no outgoing calls

Tested by

no test coverage detected