| 471 | |
| 472 | template <typename DType> |
| 473 | std::unique_ptr<typename EncodingTraits<DType>::Decoder> MakeTypedDecoder( |
| 474 | Encoding::type encoding, const ColumnDescriptor* descr = NULLPTR, |
| 475 | ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) { |
| 476 | using OutType = typename EncodingTraits<DType>::Decoder; |
| 477 | std::unique_ptr<Decoder> base = MakeDecoder(DType::type_num, encoding, descr, pool); |
| 478 | return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release())); |
| 479 | } |
| 480 | |
| 481 | /// Return the list of supported encodings for the given physical type |
| 482 | /// |
nothing calls this directly
no test coverage detected