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

Function chunked_array_values

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

Source from the content-addressed store, hash-verified

142 }
143
144 VALUE
145 chunked_array_values(VALUE rb_chunked_array) {
146 auto garrow_chunked_array =
147 GARROW_CHUNKED_ARRAY(RVAL2GOBJ(rb_chunked_array));
148 auto chunked_array =
149 garrow_chunked_array_get_raw(garrow_chunked_array).get();
150 const auto n_rows = chunked_array->length();
151 auto values = rb_ary_new_capa(n_rows);
152
153 try {
154 ValuesBuilder builder(values);
155 builder.build(*chunked_array, rb_chunked_array);
156 } catch (rb::State& state) {
157 state.jump();
158 }
159
160 return values;
161 }
162}

Callers

nothing calls this directly

Calls 4

getMethod · 0.45
lengthMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected