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

Method build_list_array

c_glib/test/helper/buildable.rb:161–169  ·  view source on GitHub ↗
(value_data_type, values_list, field_name: "value")

Source from the content-addressed store, hash-verified

159 end
160
161 def build_list_array(value_data_type, values_list, field_name: "value")
162 value_field = Arrow::Field.new(field_name, value_data_type)
163 data_type = Arrow::ListDataType.new(value_field)
164 builder = Arrow::ListArrayBuilder.new(data_type)
165 values_list.each do |values|
166 append_to_builder(builder, values)
167 end
168 builder.finish
169 end
170
171 def build_large_list_array(value_data_type, values_list, field_name: "value")
172 value_field = Arrow::Field.new(field_name, value_data_type)

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
eachMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected