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

Method DecodeSpaced

cpp/src/parquet/decoder.cc:325–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 }
324
325 int DecodeSpaced(T* buffer, int num_values, int null_count, const uint8_t* valid_bits,
326 int64_t valid_bits_offset) override {
327 if (null_count > 0) {
328 int values_to_read = num_values - null_count;
329 int values_read = this->Decode(buffer, values_to_read);
330 if (values_read != values_to_read) {
331 throw ParquetException("Number of values / definition_levels read did not match");
332 }
333 ::arrow::util::internal::SpacedExpandRightward<T>(buffer, num_values, null_count,
334 valid_bits, valid_bits_offset);
335 return num_values;
336 } else {
337 return this->Decode(buffer, num_values);
338 }
339 }
340
341 int type_length_;
342};

Callers

nothing calls this directly

Calls 2

ParquetExceptionFunction · 0.85
DecodeMethod · 0.45

Tested by

no test coverage detected