Decode all the encoded lengths. The decoder_ will be at the start of the encoded data after that.
| 1767 | // Decode all the encoded lengths. The decoder_ will be at the start of the encoded data |
| 1768 | // after that. |
| 1769 | void DecodeLengths() { |
| 1770 | len_decoder_.SetDecoder(num_values_, decoder_); |
| 1771 | |
| 1772 | // get the number of encoded lengths |
| 1773 | int num_length = len_decoder_.ValidValuesCount(); |
| 1774 | PARQUET_THROW_NOT_OK(buffered_length_->Resize(num_length * sizeof(int32_t))); |
| 1775 | |
| 1776 | // call len_decoder_.Decode to decode all the lengths. |
| 1777 | // all the lengths are buffered in buffered_length_. |
| 1778 | int ret = |
| 1779 | len_decoder_.Decode(buffered_length_->mutable_data_as<int32_t>(), num_length); |
| 1780 | DCHECK_EQ(ret, num_length); |
| 1781 | length_idx_ = 0; |
| 1782 | num_valid_values_ = num_length; |
| 1783 | } |
| 1784 | |
| 1785 | Status DecodeArrowDense(int num_values, int null_count, const uint8_t* valid_bits, |
| 1786 | int64_t valid_bits_offset, |
nothing calls this directly
no test coverage detected