| 1880 | } |
| 1881 | |
| 1882 | void WriteValues(const T* values, int64_t num_values, int64_t num_nulls) { |
| 1883 | current_value_encoder_->Put(values, static_cast<int>(num_values)); |
| 1884 | if (page_statistics_ != nullptr) { |
| 1885 | page_statistics_->Update(values, num_values, num_nulls); |
| 1886 | } |
| 1887 | |
| 1888 | UpdateUnencodedDataBytes(); |
| 1889 | |
| 1890 | if constexpr (std::is_same<T, ByteArray>::value) { |
| 1891 | if (chunk_geospatial_statistics_ != nullptr) { |
| 1892 | chunk_geospatial_statistics_->Update(values, num_values); |
| 1893 | } |
| 1894 | } |
| 1895 | if (bloom_filter_writer_ != nullptr) { |
| 1896 | bloom_filter_writer_->Update(values, num_values); |
| 1897 | } |
| 1898 | } |
| 1899 | |
| 1900 | /// \brief Write values with spaces and update page statistics accordingly. |
| 1901 | /// |