| 887 | } |
| 888 | |
| 889 | void PutSpaced(const T* src, int num_values, const uint8_t* valid_bits, |
| 890 | int64_t valid_bits_offset) override { |
| 891 | if (valid_bits != NULLPTR) { |
| 892 | PARQUET_ASSIGN_OR_THROW(auto buffer, ::arrow::AllocateBuffer(num_values * sizeof(T), |
| 893 | this->memory_pool())); |
| 894 | T* data = buffer->template mutable_data_as<T>(); |
| 895 | int num_valid_values = ::arrow::util::internal::SpacedCompress<T>( |
| 896 | src, num_values, valid_bits, valid_bits_offset, data); |
| 897 | Put(data, num_valid_values); |
| 898 | } else { |
| 899 | Put(src, num_values); |
| 900 | } |
| 901 | } |
| 902 | |
| 903 | protected: |
| 904 | ::arrow::BufferBuilder sink_; |
nothing calls this directly
no outgoing calls
no test coverage detected