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; }
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; }
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; }