12671268126912701271127212731274127512761277
} if (max_num_kvs > 0) { scan.setBatchSize(max_num_kvs); } scan.setMaxResultSize(max_num_bytes); final ScanRequest req = ScanRequest.newBuilder() .setRegion(region.toProtobuf()) .setScan(scan.build()) .setNumberOfRows(max_num_rows) .build(); return toChannelBuffer(SCAN, req);
13821383138413851386138713881389139013911392
writeHBaseLong(buf, scanner_id); writeHBaseInt(buf, max_num_rows); return buf; } final ScanRequest req = ScanRequest.newBuilder() .setScannerId(scanner_id) .setNumberOfRows(max_num_rows) .build(); return toChannelBuffer(SCAN, req); }
14441445144614471448144914501451145214531454
buf.writeInt(1); // Number of parameters. writeHBaseLong(buf, scanner_id); return buf; } final ScanRequest req = ScanRequest.newBuilder() .setScannerId(scanner_id) .setCloseScanner(true) .setNumberOfRows(0) .build(); return toChannelBuffer(SCAN, req);