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

Function build_schema

c_glib/example/send-network.c:24–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <arrow-glib/arrow-glib.h>
23
24static GArrowSchema *
25build_schema(void)
26{
27 GList *fields = NULL;
28 GArrowBooleanDataType *boolean_data_type = garrow_boolean_data_type_new();
29 fields =
30 g_list_append(fields,
31 garrow_field_new("boolean", GARROW_DATA_TYPE(boolean_data_type)));
32 GArrowInt32DataType *int32_data_type = garrow_int32_data_type_new();
33 fields =
34 g_list_append(fields, garrow_field_new("int32", GARROW_DATA_TYPE(int32_data_type)));
35 GArrowSchema *schema = garrow_schema_new(fields);
36 g_list_free_full(fields, g_object_unref);
37
38 return schema;
39}
40
41static GArrowRecordBatch *
42build_record_batch(void)

Callers 15

build_record_batchFunction · 0.85
mainFunction · 0.85
test_schemaMethod · 0.85
test_schemaMethod · 0.85
test_directoryMethod · 0.85
test_hiveMethod · 0.85
test_hive_optionsMethod · 0.85
setupMethod · 0.85
setupMethod · 0.85
test_schemaMethod · 0.85

Calls 4

garrow_field_newFunction · 0.85
garrow_schema_newFunction · 0.85

Tested by 15

test_schemaMethod · 0.68
test_schemaMethod · 0.68
test_directoryMethod · 0.68
test_hiveMethod · 0.68
test_hive_optionsMethod · 0.68
setupMethod · 0.68
setupMethod · 0.68
test_schemaMethod · 0.68
test_successMethod · 0.68