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

Function garrow_stream_decoder_get_schema

c_glib/arrow-glib/decoder.cpp:497–507  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

495 * Since: 18.0.0
496 */
497GArrowSchema *
498garrow_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:

Callers

nothing calls this directly

Calls 2

schemaMethod · 0.45

Tested by

no test coverage detected