From 1ca849269d35494e4adcb4868b4e78e9c6502de7 Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Sun, 21 Aug 2016 22:40:42 -0400 Subject: [PATCH] HBASE-16376 Scan#setBatch(int) javadoc update WRT partial results Signed-off-by: Enis Soztutar --- .../main/java/org/apache/hadoop/hbase/client/Scan.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java index 1892f5467ec..ee3ed43ee4f 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java @@ -479,7 +479,13 @@ public class Scan extends Query { } /** - * Set the maximum number of values to return for each call to next() + * Set the maximum number of values to return for each call to next(). + * Callers should be aware that invoking this method with any value + * is equivalent to calling {@link #setAllowPartialResults(boolean)} + * with a value of {@code true}; partial results may be returned if + * this method is called. Use {@link #setMaxResultSize(long)}} to + * limit the size of a Scan's Results instead. + * * @param batch the maximum number of values */ public Scan setBatch(int batch) {