| 308 | |
| 309 | protected: |
| 310 | TypedDecoderImpl(const ColumnDescriptor* descr, Encoding::type encoding) |
| 311 | : DecoderImpl(descr, encoding) { |
| 312 | if constexpr (std::is_same_v<DType, FLBAType>) { |
| 313 | if (descr_ == nullptr) { |
| 314 | throw ParquetException( |
| 315 | "Must pass a ColumnDescriptor when creating a Decoder for " |
| 316 | "FIXED_LEN_BYTE_ARRAY"); |
| 317 | } |
| 318 | type_length_ = descr_->type_length(); |
| 319 | } else if constexpr (std::is_same_v<DType, ByteArrayType>) { |
| 320 | type_length_ = -1; |
| 321 | } else { |
| 322 | type_length_ = sizeof(T); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | int DecodeSpaced(T* buffer, int num_values, int null_count, const uint8_t* valid_bits, |
| 327 | int64_t valid_bits_offset) override { |
nothing calls this directly
no test coverage detected