| 460 | |
| 461 | template <typename DType> |
| 462 | std::unique_ptr<typename EncodingTraits<DType>::Decoder> MakeTypedDecoder( |
| 463 | Encoding::type encoding, const ColumnDescriptor* descr = NULLPTR, |
| 464 | ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) { |
| 465 | using OutType = typename EncodingTraits<DType>::Decoder; |
| 466 | std::unique_ptr<Decoder> base = MakeDecoder(DType::type_num, encoding, descr, pool); |
| 467 | return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release())); |
| 468 | } |
| 469 | |
| 470 | /// Return the list of supported encodings for the given physical type |
| 471 | /// |
nothing calls this directly
no test coverage detected