* garrow_stream_decoder_get_schema: * @decoder: A #GArrowStreamDecoder. * * Returns: (nullable) (transfer full): The shared #GArrowSchema of * the record batches in the stream. * * Since: 18.0.0 */
| 495 | * Since: 18.0.0 |
| 496 | */ |
| 497 | GArrowSchema * |
| 498 | garrow_stream_decoder_get_schema(GArrowStreamDecoder *decoder) |
| 499 | { |
| 500 | auto arrow_decoder = garrow_stream_decoder_get_raw(decoder); |
| 501 | auto arrow_schema = arrow_decoder->schema(); |
| 502 | if (arrow_schema) { |
| 503 | return garrow_schema_new_raw(&arrow_schema); |
| 504 | } else { |
| 505 | return nullptr; |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | /** |
| 510 | * garrow_stream_decoder_get_next_required_size: |
nothing calls this directly
no test coverage detected