@InterfaceAudience.Private public class BatchScanResultCache extends Object
scan.getBatch() > 0 && !scan.getAllowPartialResults().
 If user setBatch(5) and rpc returns 3+5+5+5+3 cells, we should return 5+5+5+5+1 to user. setBatch doesn't mean setAllowPartialResult(true).
| Modifier and Type | Field and Description | 
|---|---|
| static Result[] | EMPTY_RESULT_ARRAY | 
| Constructor and Description | 
|---|
| BatchScanResultCache(int batch) | 
| Modifier and Type | Method and Description | 
|---|---|
| Result[] | addAndGet(Result[] results,
         boolean isHeartbeatMessage)Add the given results to cache and get valid results back. | 
| void | clear()Clear the cached result if any. | 
| int | numberOfCompleteRows()Return the number of complete rows. | 
public static final Result[] EMPTY_RESULT_ARRAY
public Result[] addAndGet(Result[] results, boolean isHeartbeatMessage) throws IOException
results - the results of a scan next. Must not be null.isHeartbeatMessage - indicate whether the results is gotten from a heartbeat response.IOExceptionpublic void clear()
public int numberOfCompleteRows()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.