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

Method to_a

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

Source from the content-addressed store, hash-verified

1193
1194 class MapArray < VariableSizeListArray
1195 def to_a
1196 return [] if empty?
1197
1198 super.collect do |entries|
1199 if entries.nil?
1200 entries
1201 else
1202 hash = {}
1203 entries.each do |key, value|
1204 hash[key] = value
1205 end
1206 hash
1207 end
1208 end
1209 end
1210 end
1211
1212 class UnionArray < Array

Callers 4

to_aMethod · 0.45
to_aMethod · 0.45
to_aMethod · 0.45
to_aMethod · 0.45

Calls 1

eachMethod · 0.45

Tested by

no test coverage detected