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

Method MakeExample1

cpp/src/arrow/io/buffered_test.cc:332–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 }
331
332 void MakeExample1(int64_t buffer_size, MemoryPool* pool = default_memory_pool(),
333 int64_t raw_read_bound = -1) {
334 test_data_ = kExample1;
335
336 ASSERT_OK_AND_ASSIGN(auto file_out, FileOutputStream::Open(path_));
337 ASSERT_OK(file_out->Write(test_data_));
338 ASSERT_OK(file_out->Close());
339
340 ASSERT_OK_AND_ASSIGN(auto file_in, ReadableFile::Open(path_));
341 raw_ = file_in;
342 ASSERT_OK_AND_ASSIGN(
343 buffered_, BufferedInputStream::Create(buffer_size, pool, raw_, raw_read_bound));
344 }
345
346 protected:
347 std::unique_ptr<MemoryPool> local_pool_;

Callers

nothing calls this directly

Calls 4

default_memory_poolFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.50
WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected