| 61 | } |
| 62 | |
| 63 | std::shared_ptr<ReaderFactory> getReaderFactory(FileFormat format) { |
| 64 | auto it = readerFactories().find(format); |
| 65 | BOLT_CHECK( |
| 66 | it != readerFactories().end(), |
| 67 | "ReaderFactory is not registered for format {}", |
| 68 | toString(format)); |
| 69 | return it->second; |
| 70 | } |
| 71 | |
| 72 | } // namespace bytedance::bolt::dwio::common |