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

Method PutSpaced

cpp/src/parquet/encoder.cc:1691–1703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1689 }
1690
1691 void PutSpaced(const T* src, int num_values, const uint8_t* valid_bits,
1692 int64_t valid_bits_offset) override {
1693 if (valid_bits != NULLPTR) {
1694 PARQUET_ASSIGN_OR_THROW(auto buffer, ::arrow::AllocateBuffer(num_values * sizeof(T),
1695 this->memory_pool()));
1696 T* data = buffer->mutable_data_as<T>();
1697 int num_valid_values = ::arrow::util::internal::SpacedCompress<T>(
1698 src, num_values, valid_bits, valid_bits_offset, data);
1699 Put(data, num_valid_values);
1700 } else {
1701 Put(src, num_values);
1702 }
1703 }
1704
1705 void Put(const std::vector<bool>& src, int num_values) override;
1706

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected