Sets the maximum number of rows to scan per RPC (for better performance). Every time #nextRows() is invoked, up to this number of rows may be returned. The default value is #DEFAULT_MAX_NUM_ROWS. This knob has a high performance impact. If it's too low, you'll do too
(final int max_num_rows)
| 500 | * @throws IllegalArgumentException if the argument is zero or negative. |
| 501 | */ |
| 502 | public void setMaxNumRows(final int max_num_rows) { |
| 503 | if (max_num_rows <= 0) { |
| 504 | throw new IllegalArgumentException("zero or negative argument: " |
| 505 | + max_num_rows); |
| 506 | } |
| 507 | this.max_num_rows = max_num_rows; |
| 508 | } |
| 509 | |
| 510 | /** |
| 511 | * Sets the maximum number of {@link KeyValue}s the server is allowed to |