MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / setMaxVersions

Method setMaxVersions

src/Scanner.java:560–567  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

getPBMethod · 0.80
serializeMethod · 0.80
serializeMethod · 0.80

Calls 1

Tested by

no test coverage detected