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

Method slice

ruby/red-arrow-format/lib/arrow-format/array.rb:36–40  ·  view source on GitHub ↗
(offset, size=nil)

Source from the content-addressed store, hash-verified

34 end
35
36 def slice(offset, size=nil)
37 sliced = dup
38 sliced.slice!(@offset + offset, size || @size - offset)
39 sliced
40 end
41
42 def valid?(i)
43 return true if @validity_buffer.nil?

Callers 15

write_dictionaryMethod · 0.45
read_columnMethod · 0.45
slice_bitmap_bufferMethod · 0.45
each_bufferMethod · 0.45
slice!Method · 0.45
slice!Method · 0.45
slice!Method · 0.45
slice!Method · 0.45
validateMethod · 0.45
read_footerMethod · 0.45
read_blockMethod · 0.45

Calls 1

slice!Method · 0.45

Tested by

no test coverage detected