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

Method DecodeLengths

cpp/src/parquet/decoder.cc:1788–1802  ·  view source on GitHub ↗

Decode all the encoded lengths. The decoder_ will be at the start of the encoded data after that.

Source from the content-addressed store, hash-verified

1786 // Decode all the encoded lengths. The decoder_ will be at the start of the encoded data
1787 // after that.
1788 void DecodeLengths() {
1789 len_decoder_.SetDecoder(num_values_, decoder_);
1790
1791 // get the number of encoded lengths
1792 int num_length = len_decoder_.ValidValuesCount();
1793 PARQUET_THROW_NOT_OK(buffered_length_->Resize(num_length * sizeof(int32_t)));
1794
1795 // call len_decoder_.Decode to decode all the lengths.
1796 // all the lengths are buffered in buffered_length_.
1797 int ret =
1798 len_decoder_.Decode(buffered_length_->mutable_data_as<int32_t>(), num_length);
1799 DCHECK_EQ(ret, num_length);
1800 length_idx_ = 0;
1801 num_valid_values_ = num_length;
1802 }
1803
1804 Status DecodeArrowDense(int num_values, int null_count, const uint8_t* valid_bits,
1805 int64_t valid_bits_offset,

Callers

nothing calls this directly

Calls 4

ValidValuesCountMethod · 0.80
SetDecoderMethod · 0.45
ResizeMethod · 0.45
DecodeMethod · 0.45

Tested by

no test coverage detected