From df8b223a6391dbd82c85bb2005b0d426a14ca304 Mon Sep 17 00:00:00 2001 From: Chong Gao Date: Mon, 4 Nov 2024 10:18:19 +0800 Subject: [PATCH] Update function comments --- src/main/java/com/nvidia/spark/rapids/jni/HLLPP.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nvidia/spark/rapids/jni/HLLPP.java b/src/main/java/com/nvidia/spark/rapids/jni/HLLPP.java index 1be2c80512..9e51761f4a 100644 --- a/src/main/java/com/nvidia/spark/rapids/jni/HLLPP.java +++ b/src/main/java/com/nvidia/spark/rapids/jni/HLLPP.java @@ -31,9 +31,12 @@ public class HLLPP { /** * Compute the approximate count distinct value from sketch values. *

- * The input sketch values must be given in the format `LIST`. + * The input sketch values must be given in the format `Struct`, + * The num of children is: num_registers_per_sketch / 10 + 1, here 10 means a INT64 contains + * max 10 registers. Register value is 6 bits. The input is columnar data, e.g.: sketch 0 + * is composed of by all the data of the children at index 0. * - * @param input The sketch column which constains `LIST values. + * @param input The sketch column which constains Struct values. * @param precision The num of bits for addressing. * @return A INT64 column with each value indicates the approximate count distinct value. */