Sets the maximum number of versions to return for each cell read. By default only the most recent version of each cell is read. If you want to get all possible versions available, pass Integer#MAX_VALUE in argument. @param versions A strictly positive number of versions to return. @retur
(final int versions)
| 297 | * @throws IllegalArgumentException if {@code versions <= 0} |
| 298 | */ |
| 299 | public GetRequest maxVersions(final int versions) { |
| 300 | if (versions <= 0) { |
| 301 | throw new IllegalArgumentException("Need a strictly positive number: " |
| 302 | + versions); |
| 303 | } |
| 304 | this.versions = (versions << 1) | (this.versions & EXIST_FLAG); |
| 305 | return this; |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * Returns the maximum number of versions to return for each cell scanned. |
no outgoing calls