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

Method each

ruby/red-arrow-format/lib/arrow-format/array.rb:335–349  ·  view source on GitHub ↗
(&block)

Source from the content-addressed store, hash-verified

333 end
334
335 def each(&block)
336 return to_enum(__method__) {@size} unless block_given?
337
338 if @validity_buffer.nil?
339 values_bitmap.each(&block)
340 else
341 validity_bitmap.zip(values_bitmap) do |is_valid, value|
342 if is_valid
343 yield(value)
344 else
345 yield(nil)
346 end
347 end
348 end
349 end
350
351 def each_buffer
352 return to_enum(__method__) {2} unless block_given?

Callers

nothing calls this directly

Calls 1

eachMethod · 0.45

Tested by

no test coverage detected