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

Method open_input

ruby/red-arrow-format/test/test-reader.rb:705–718  ·  view source on GitHub ↗
(table, tmp_dir, **options)

Source from the content-addressed store, hash-verified

703
704module PipeInput
705 def open_input(table, tmp_dir, **options)
706 buffer = Arrow::ResizableBuffer.new(4096)
707 table.save(buffer, format: format, **options)
708 IO.pipe do |input, output|
709 write_thread = Thread.new do
710 output.write(buffer.data.to_s)
711 end
712 begin
713 yield(input)
714 ensure
715 write_thread.join
716 end
717 end
718 end
719end
720
721module StringInput

Callers

nothing calls this directly

Calls 6

newMethod · 0.45
saveMethod · 0.45
writeMethod · 0.45
to_sMethod · 0.45
dataMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected