* 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 */
| 982 | * Since: 5.0.0 |
| 983 | */ |
| 984 | GArrowSchema * |
| 985 | gaflight_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: |
nothing calls this directly
no test coverage detected