| 499 | } // namespace |
| 500 | |
| 501 | Result<std::shared_ptr<TableReader>> TableReader::Make( |
| 502 | MemoryPool* pool, std::shared_ptr<io::InputStream> input, |
| 503 | const ReadOptions& read_options, const ParseOptions& parse_options) { |
| 504 | std::shared_ptr<TableReaderImpl> ptr; |
| 505 | if (read_options.use_threads) { |
| 506 | ptr = std::make_shared<TableReaderImpl>(pool, read_options, parse_options, |
| 507 | TaskGroup::MakeThreaded(GetCpuThreadPool())); |
| 508 | } else { |
| 509 | ptr = std::make_shared<TableReaderImpl>(pool, read_options, parse_options, |
| 510 | TaskGroup::MakeSerial()); |
| 511 | } |
| 512 | RETURN_NOT_OK(ptr->Init(input)); |
| 513 | return ptr; |
| 514 | } |
| 515 | |
| 516 | Future<std::shared_ptr<StreamingReader>> StreamingReader::MakeAsync( |
| 517 | std::shared_ptr<io::InputStream> stream, const ReadOptions& read_options, |
nothing calls this directly
no test coverage detected