| 426 | |
| 427 | template <typename DType> |
| 428 | std::unique_ptr<typename EncodingTraits<DType>::Encoder> MakeTypedEncoder( |
| 429 | Encoding::type encoding, bool use_dictionary = false, |
| 430 | const ColumnDescriptor* descr = NULLPTR, |
| 431 | ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) { |
| 432 | using OutType = typename EncodingTraits<DType>::Encoder; |
| 433 | std::unique_ptr<Encoder> base = |
| 434 | MakeEncoder(DType::type_num, encoding, use_dictionary, descr, pool); |
| 435 | return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release())); |
| 436 | } |
| 437 | |
| 438 | PARQUET_EXPORT |
| 439 | std::unique_ptr<Decoder> MakeDecoder( |
nothing calls this directly
no test coverage detected