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

Method slice

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

Source from the content-addressed store, hash-verified

48 end
49
50 def slice(offset, size=nil)
51 sliced = dup
52 sliced.slice!(@offset + offset, size || @size - offset)
53 sliced
54 end
55
56 def valid?(i)
57 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 15

test_slicedMethod · 0.36
test_slicedMethod · 0.36
test_slicedMethod · 0.36
test_slicedMethod · 0.36
test_slicedMethod · 0.36
test_slicedMethod · 0.36
test_slicedMethod · 0.36