@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).
限定符和类型 | 字段和说明 |
---|---|
static Result[] |
EMPTY_RESULT_ARRAY |
构造器和说明 |
---|
BatchScanResultCache(int batch) |
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.IOException
public void clear()
public int numberOfCompleteRows()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.