| 437 | |
| 438 | template <typename DType> |
| 439 | std::unique_ptr<typename EncodingTraits<DType>::Encoder> MakeTypedEncoder( |
| 440 | Encoding::type encoding, bool use_dictionary = false, |
| 441 | const ColumnDescriptor* descr = NULLPTR, |
| 442 | ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) { |
| 443 | using OutType = typename EncodingTraits<DType>::Encoder; |
| 444 | std::unique_ptr<Encoder> base = |
| 445 | MakeEncoder(DType::type_num, encoding, use_dictionary, descr, pool); |
| 446 | return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release())); |
| 447 | } |
| 448 | |
| 449 | PARQUET_EXPORT |
| 450 | std::unique_ptr<Decoder> MakeDecoder( |
nothing calls this directly
no test coverage detected