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

Method maxVersions

src/GetRequest.java:299–306  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 5

serializePayloadIntoMethod · 0.95
getPBMethod · 0.95
serializeOldMethod · 0.95
serializeMethod · 0.95

Calls

no outgoing calls

Tested by 1