Sets the maximum number of versions to return for each cell scanned. By default a scanner will only return the most recent version of each cell. If you want to get all possible versions available, pass Integer#MAX_VALUE in argument. @param versions A strictly positive number of versions
(final int versions)
| 558 | * @throws IllegalArgumentException if {@code versions <= 0} |
| 559 | */ |
| 560 | public void setMaxVersions(final int versions) { |
| 561 | if (versions <= 0) { |
| 562 | throw new IllegalArgumentException("Need a strictly positive number: " |
| 563 | + versions); |
| 564 | } |
| 565 | checkScanningNotStarted(); |
| 566 | this.versions = versions; |
| 567 | } |
| 568 | |
| 569 | /** |
| 570 | * Returns the maximum number of versions to return for each cell scanned. |
no test coverage detected