| 222 | // Factory functions |
| 223 | |
| 224 | Result<std::shared_ptr<ColumnDecoder>> ColumnDecoder::Make( |
| 225 | MemoryPool* pool, int32_t col_index, const ConvertOptions& options) { |
| 226 | auto ptr = std::make_shared<InferringColumnDecoder>(col_index, options, pool); |
| 227 | RETURN_NOT_OK(ptr->Init()); |
| 228 | return ptr; |
| 229 | } |
| 230 | |
| 231 | Result<std::shared_ptr<ColumnDecoder>> ColumnDecoder::Make( |
| 232 | MemoryPool* pool, std::shared_ptr<DataType> type, int32_t col_index, |