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

Method PutSpaced

cpp/src/parquet/encoder.cc:889–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected