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

Method setup_file

c_glib/test/test-feather-file-reader.rb:21–37  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

19 include Helper::Buildable
20
21 def setup_file(table)
22 tempfile = Tempfile.open("arrow-feather-file-reader")
23 output = Arrow::FileOutputStream.new(tempfile.path, false)
24 begin
25 table.write_as_feather(output)
26 ensure
27 output.close
28 end
29
30 input = Arrow::MemoryMappedInputStream.new(tempfile.path)
31 begin
32 reader = Arrow::FeatherFileReader.new(input)
33 yield(reader)
34 ensure
35 input.close
36 end
37 end
38
39 test("#read") do
40 table = build_table("message" => build_string_array(["Login"]),

Callers

nothing calls this directly

Calls 4

openMethod · 0.45
newMethod · 0.45
pathMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected