From ddd0cde5621cf3b043a34818bb1e4de4f73bd035 Mon Sep 17 00:00:00 2001 From: mwish Date: Tue, 7 May 2024 22:42:19 +0800 Subject: [PATCH] add comment for SetData --- cpp/src/parquet/encoding.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/src/parquet/encoding.h b/cpp/src/parquet/encoding.h index 602009189595e..dcb2c49f693ef 100644 --- a/cpp/src/parquet/encoding.h +++ b/cpp/src/parquet/encoding.h @@ -255,6 +255,10 @@ class Decoder { // Sets the data for a new page. This will be called multiple times on the same // decoder and should reset all internal state. + // + // In current implementations, `num_values` is the `num_values` field in the + // data page header, which may greater than the number of values in the data + // buffer. virtual void SetData(int num_values, const uint8_t* data, int len) = 0; // Returns the number of values left (for the last call to SetData()). This is