| 935 | |
| 936 | template <typename DType> |
| 937 | void TypedStatisticsImpl<DType>::PlainDecode(const std::string& src, T* dst) const { |
| 938 | auto decoder = MakeTypedDecoder<DType>(Encoding::PLAIN, descr_); |
| 939 | decoder->SetData(1, reinterpret_cast<const uint8_t*>(src.c_str()), |
| 940 | static_cast<int>(src.size())); |
| 941 | int decoded_values = decoder->Decode(dst, 1); |
| 942 | if (decoded_values != 1) { |
| 943 | throw ParquetException("Failed to decode statistic value from plain encoded string"); |
| 944 | } |
| 945 | } |
| 946 | |
| 947 | template <> |
| 948 | void TypedStatisticsImpl<ByteArrayType>::PlainEncode(const T& src, |
nothing calls this directly
no test coverage detected