| 148 | void Put(const ::arrow::Array& values) override; |
| 149 | |
| 150 | void PutSpaced(const T* src, int num_values, const uint8_t* valid_bits, |
| 151 | int64_t valid_bits_offset) override { |
| 152 | if (valid_bits != NULLPTR) { |
| 153 | PARQUET_ASSIGN_OR_THROW(auto buffer, ::arrow::AllocateBuffer(num_values * sizeof(T), |
| 154 | this->memory_pool())); |
| 155 | T* data = buffer->template mutable_data_as<T>(); |
| 156 | int num_valid_values = ::arrow::util::internal::SpacedCompress<T>( |
| 157 | src, num_values, valid_bits, valid_bits_offset, data); |
| 158 | Put(data, num_valid_values); |
| 159 | } else { |
| 160 | Put(src, num_values); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void UnsafePutByteArray(const void* data, uint32_t length) { |
| 165 | DCHECK(length == 0 || data != nullptr) << "Value ptr cannot be NULL"; |
nothing calls this directly
no outgoing calls
no test coverage detected