MCPcopy Create free account
hub / github.com/apache/arrow / Decode

Method Decode

cpp/src/parquet/decoder.cc:2270–2283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

ParquetExceptionFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected