emkornfield commented on code in PR #14603:
URL: https://github.com/apache/arrow/pull/14603#discussion_r1030835177


##########
cpp/src/parquet/column_reader.h:
##########
@@ -115,11 +116,26 @@ class PARQUET_EXPORT PageReader {
                                           bool always_compressed = false,
                                           const CryptoContext* ctx = NULLPTR);
 
+  // If skip_page_callback_ is set, NextPage() must use this callback to 
determine if it
+  // should return or skip and move to the next page. If the callback function 
returns
+  // true the page must be skipped. The callback will be called only if the 
page
+  // type is DATA_PAGE or DATA_PAGE_V2. Dictionary pages must be read
+  // regardless.
+  // \note API EXPERIMENTAL
+  void set_skip_page_callback(
+      std::function<bool(const DataPageStats&)> skip_page_callback) {
+    skip_page_callback_ = skip_page_callback;

Review Comment:
   nit: std::move ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to