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

Method to_a

ruby/red-arrow-format/lib/arrow-format/array.rb:1173–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171 end
1172
1173 def to_a
1174 return [] if empty?
1175
1176 if @children.empty?
1177 values = [[]] * @size
1178 else
1179 children_values = @children.collect(&:to_a)
1180 values = children_values[0].zip(*children_values[1..-1])
1181 end
1182 apply_validity(values)
1183 end
1184
1185 private
1186 def slice!(offset, size)

Callers

nothing calls this directly

Calls 1

empty?Method · 0.45

Tested by

no test coverage detected