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

Function gaflight_info_get_schema

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

* gaflight_info_get_schema: * @info: A #GAFlightInfo. * @options: (nullable): A #GArrowReadOptions. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): Deserialized #GArrowSchema, %NULL on error. * * Since: 5.0.0 */

Source from the content-addressed store, hash-verified

982 * Since: 5.0.0
983 */
984GArrowSchema *
985gaflight_info_get_schema(GAFlightInfo *info, GArrowReadOptions *options, GError **error)
986{
987 const auto flight_info = gaflight_info_get_raw(info);
988 arrow::Status status;
989 std::shared_ptr<arrow::Schema> arrow_schema;
990 if (options) {
991 auto arrow_memo = garrow_read_options_get_dictionary_memo_raw(options);
992 status = flight_info->GetSchema(arrow_memo).Value(&arrow_schema);
993 } else {
994 arrow::ipc::DictionaryMemo arrow_memo;
995 status = flight_info->GetSchema(&arrow_memo).Value(&arrow_schema);
996 }
997 if (garrow::check(error, status, "[flight-info][get-schema]")) {
998 return garrow_schema_new_raw(&arrow_schema);
999 } else {
1000 return NULL;
1001 }
1002}
1003
1004/**
1005 * gaflight_info_get_descriptor:

Callers

nothing calls this directly

Calls 5

gaflight_info_get_rawFunction · 0.85
checkFunction · 0.50
ValueMethod · 0.45
GetSchemaMethod · 0.45

Tested by

no test coverage detected