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

Function array_values

ruby/red-arrow/ext/arrow/values.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 VALUE
128 array_values(VALUE rb_array) {
129 auto garrow_array = GARROW_ARRAY(RVAL2GOBJ(rb_array));
130 auto array = garrow_array_get_raw(garrow_array).get();
131 const auto n_rows = array->length();
132 auto values = rb_ary_new_capa(n_rows);
133
134 try {
135 ValuesBuilder builder(values);
136 builder.build(*array, rb_array);
137 } catch (rb::State& state) {
138 state.jump();
139 }
140
141 return values;
142 }
143
144 VALUE
145 chunked_array_values(VALUE rb_chunked_array) {

Callers

nothing calls this directly

Calls 4

garrow_array_get_rawFunction · 0.50
getMethod · 0.45
lengthMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected