MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / setMaxNumBytes

Method setMaxNumBytes

src/Scanner.java:591–598  ·  view source on GitHub ↗

Sets the maximum number of bytes returned at once by the scanner. HBase may actually return more than this many bytes because it will not truncate a row in the middle. This value is only used when communicating with HBase 0.95 and newer. For older versions of HBase this value is silently ign

(final long max_num_bytes)

Source from the content-addressed store, hash-verified

589 * @throws IllegalArgumentException if {@code max_num_bytes <= 0}
590 */
591 public void setMaxNumBytes(final long max_num_bytes) {
592 if (max_num_bytes <= 0) {
593 throw new IllegalArgumentException("Need a strictly positive number of"
594 + " bytes, got " + max_num_bytes);
595 }
596 checkScanningNotStarted();
597 this.max_num_bytes = max_num_bytes;
598 }
599
600 /**
601 * Returns the maximum number of bytes returned at once by the scanner.

Callers 1

Calls 1

Tested by 1