diff --git a/cpp/src/parquet/properties.h b/cpp/src/parquet/properties.h index 1dcfe67c29f3..eb5aee29695e 100644 --- a/cpp/src/parquet/properties.h +++ b/cpp/src/parquet/properties.h @@ -700,7 +700,7 @@ class PARQUET_EXPORT WriterProperties { return this; } - /// Enable writing page index in general for all columns. Default disabled. + /// Enable writing page index in general for all columns. Default enabled. /// /// Writing statistics to the page index disables the old method of writing /// statistics to each data page header. @@ -715,35 +715,36 @@ class PARQUET_EXPORT WriterProperties { return this; } - /// Disable writing page index in general for all columns. Default disabled. + /// Disable writing page index in general for all columns. Default enabled. Builder* disable_write_page_index() { default_column_properties_.set_page_index_enabled(false); return this; } - /// Enable writing page index for column specified by `path`. Default disabled. + /// Enable writing page index for column specified by `path`. Default enabled. Builder* enable_write_page_index(const std::string& path) { page_index_enabled_[path] = true; return this; } - /// Enable writing page index for column specified by `path`. Default disabled. + /// Enable writing page index for column specified by `path`. Default enabled. Builder* enable_write_page_index(const std::shared_ptr& path) { return this->enable_write_page_index(path->ToDotString()); } - /// Disable writing page index for column specified by `path`. Default disabled. + /// Disable writing page index for column specified by `path`. Default enabled. Builder* disable_write_page_index(const std::string& path) { page_index_enabled_[path] = false; return this; } - /// Disable writing page index for column specified by `path`. Default disabled. + /// Disable writing page index for column specified by `path`. Default enabled. Builder* disable_write_page_index(const std::shared_ptr& path) { return this->disable_write_page_index(path->ToDotString()); } - /// \brief Set the level to write size statistics for all columns. Default is None. + /// \brief Set the level to write size statistics for all columns. Default is + /// PageAndColumnChunk. /// /// \param level The level to write size statistics. Note that if page index is not /// enabled, page level size statistics will not be written even if the level