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

Function garrow_field_refs_add

c_glib/arrow-glib/compute.cpp:90–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89namespace {
90 gboolean
91 garrow_field_refs_add(std::vector<arrow::FieldRef> &arrow_field_refs,
92 const gchar *string,
93 GError **error,
94 const gchar *tag)
95 {
96 if (string[0] == '.' || string[0] == '[') {
97 auto arrow_field_ref_result = arrow::FieldRef::FromDotPath(string);
98 if (!garrow::check(error, arrow_field_ref_result, tag)) {
99 return false;
100 }
101 arrow_field_refs.push_back(std::move(*arrow_field_ref_result));
102 } else {
103 arrow_field_refs.emplace_back(string);
104 }
105 return true;
106 }
107
108 GList *
109 garrow_sort_keys_new_raw(std::vector<arrow::compute::SortKey> &arrow_sort_keys)

Calls 3

push_backMethod · 0.80
emplace_backMethod · 0.80
checkFunction · 0.70

Tested by

no test coverage detected