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