| 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()); |