| 2268 | using Base::pool_; |
| 2269 | |
| 2270 | int Decode(FixedLenByteArray* buffer, int max_values) override { |
| 2271 | // GetInternal currently only support ByteArray. |
| 2272 | std::vector<ByteArray> decode_byte_array(max_values); |
| 2273 | const int decoded_values_size = GetInternal(decode_byte_array.data(), max_values); |
| 2274 | const uint32_t type_length = static_cast<uint32_t>(this->type_length_); |
| 2275 | |
| 2276 | for (int i = 0; i < decoded_values_size; i++) { |
| 2277 | if (ARROW_PREDICT_FALSE(decode_byte_array[i].len != type_length)) { |
| 2278 | throw ParquetException("Fixed length byte array length mismatch"); |
| 2279 | } |
| 2280 | buffer[i].ptr = decode_byte_array[i].ptr; |
| 2281 | } |
| 2282 | return decoded_values_size; |
| 2283 | } |
| 2284 | |
| 2285 | // Same internal decode as above, but copy the bytes contiguously into the |
| 2286 | // caller's buffer instead of materializing per-value pointers. |
nothing calls this directly
no test coverage detected