Sets the maximum number of KeyValues the server is allowed to return in a single RPC response. If you're dealing with wide rows, in which you have many cells, you may want to limit the number of cells (KeyValues) that the server returns in a single RPC response. The default i
(final int max_num_kvs)
| 530 | * @throws IllegalStateException if scanning already started. |
| 531 | */ |
| 532 | public void setMaxNumKeyValues(final int max_num_kvs) { |
| 533 | if (max_num_kvs == 0) { |
| 534 | throw new IllegalArgumentException("batch size can't be zero"); |
| 535 | } |
| 536 | checkScanningNotStarted(); |
| 537 | this.max_num_kvs = max_num_kvs; |
| 538 | } |
| 539 | |
| 540 | /** |
| 541 | * Maximum number of {@link KeyValue}s the server is allowed to return. |