private boolean regionExhausted(Result[] values) { // 1. Not a heartbeat message and we get nothing, this means the region is exhausted. And in the // old time we always return empty result for a open scanner operation so we add a check here to // keep compatible with the old logic. Should remove the isOpenScanner in the future. // 2. Server tells us that it has no more results for this region. return (values.length == 0 && !callable.isHeartbeatMessage()) || callable.moreResultsInRegion() == MoreResults.NO; }
scanResultCache.addAndGet(values, callable.isHeartbeatMessage()); int numberOfCompleteRows = scanResultCache.numberOfCompleteRows() - numberOfCompleteRowsBefore; if (callable.isHeartbeatMessage()) { if (!cache.isEmpty()) { if (callable.isHeartbeatMessage() && callable.getCursor() != null) {
private boolean regionExhausted(Result[] values) { // 1. Not a heartbeat message and we get nothing, this means the region is exhausted. And in the // old time we always return empty result for a open scanner operation so we add a check here to // keep compatible with the old logic. Should remove the isOpenScanner in the future. // 2. Server tells us that it has no more results for this region. return (values.length == 0 && !callable.isHeartbeatMessage()) || callable.moreResultsInRegion() == MoreResults.NO; }
scanResultCache.addAndGet(values, callable.isHeartbeatMessage()); int numberOfCompleteRows = scanResultCache.numberOfCompleteRows() - numberOfCompleteRowsBefore; if (callable.isHeartbeatMessage()) { if (!cache.isEmpty()) { if (callable.isHeartbeatMessage() && callable.getCursor() != null) {
private boolean regionExhausted(Result[] values) { // 1. Not a heartbeat message and we get nothing, this means the region is exhausted. And in the // old time we always return empty result for a open scanner operation so we add a check here to // keep compatible with the old logic. Should remove the isOpenScanner in the future. // 2. Server tells us that it has no more results for this region. return (values.length == 0 && !callable.isHeartbeatMessage()) || callable.moreResultsInRegion() == MoreResults.NO; }
getResultsToAddToCache(values, callable.isHeartbeatMessage()); if (!resultsToAddToCache.isEmpty()) { for (Result rs : resultsToAddToCache) { if (callable.isHeartbeatMessage() && cache.size() > 0) { if (LOG.isTraceEnabled()) { LOG.trace("Heartbeat message received and cache contains Results."
scanResultCache.addAndGet(values, callable.isHeartbeatMessage()); int numberOfCompleteRows = scanResultCache.numberOfCompleteRows() - numberOfCompleteRowsBefore; if (callable.isHeartbeatMessage()) { if (!cache.isEmpty()) { if (callable.isHeartbeatMessage() && callable.getCursor() != null) {