| 1022 | |
| 1023 | template <typename DType> |
| 1024 | void TypedStatisticsImpl<DType>::PlainDecode(const std::string& src, T* dst) const { |
| 1025 | auto decoder = MakeTypedDecoder<DType>(Encoding::PLAIN, descr_); |
| 1026 | decoder->SetData(1, reinterpret_cast<const uint8_t*>(src.c_str()), |
| 1027 | static_cast<int>(src.size())); |
| 1028 | int decoded_values = decoder->Decode(dst, 1); |
| 1029 | if (decoded_values != 1) { |
| 1030 | throw ParquetException("Failed to decode statistic value from plain encoded string"); |
| 1031 | } |
| 1032 | } |
| 1033 | |
| 1034 | template <> |
| 1035 | void TypedStatisticsImpl<ByteArrayType>::PlainEncode(const T& src, |
nothing calls this directly
no test coverage detected