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

Method Init

cpp/src/arrow/csv/reader.cc:975–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973 using BaseTableReader::BaseTableReader;
974
975 Status Init() override {
976 ARROW_ASSIGN_OR_RAISE(auto istream_it,
977 io::MakeInputStreamIterator(input_, read_options_.block_size));
978
979 // Since we're converting serially, no need to readahead more than one block
980 int32_t block_queue_size = 1;
981 ARROW_ASSIGN_OR_RAISE(auto rh_it,
982 MakeReadaheadIterator(std::move(istream_it), block_queue_size));
983 buffer_iterator_ = CSVBufferIterator::Make(std::move(rh_it));
984 return Status::OK();
985 }
986
987 Result<std::shared_ptr<Table>> Read() override {
988 task_group_ = TaskGroup::MakeSerial(io_context_.stop_token());

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected