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

Method build_record_batch

c_glib/test/helper/buildable.rb:261–268  ·  view source on GitHub ↗
(columns)

Source from the content-addressed store, hash-verified

259 end
260
261 def build_record_batch(columns)
262 n_rows = columns.collect {|_, array| array.length}.min || 0
263 fields = columns.collect do |name, array|
264 Arrow::Field.new(name, array.value_data_type)
265 end
266 schema = Arrow::Schema.new(fields)
267 Arrow::RecordBatch.new(schema, n_rows, columns.values)
268 end
269
270 def build_file_uri(path)
271 absolute_path = File.expand_path(path)

Callers

nothing calls this directly

Calls 5

minMethod · 0.45
lengthMethod · 0.45
newMethod · 0.45
value_data_typeMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected