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

Method dump_table

c_glib/test/test-table.rb:31–46  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

29 end
30
31 def dump_table(table)
32 table.n_columns.times.collect do |i|
33 field = table.schema.get_field(i)
34 chunked_array = table.get_column_data(i)
35 values = []
36 chunked_array.chunks.each do |chunk|
37 chunk.length.times do |j|
38 values << chunk.get_value(j)
39 end
40 end
41 [
42 field.name,
43 values,
44 ]
45 end
46 end
47
48 def test_arrays
49 require_gi_bindings(3, 3, 1)

Callers

nothing calls this directly

Calls 6

schemaMethod · 0.45
eachMethod · 0.45
chunksMethod · 0.45
lengthMethod · 0.45
get_valueMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected