@InterfaceAudience.Private interface ScanResultCache
After we add heartbeat support for scan, RS may return partial result even if allowPartial is false and batch is 0. With this interface, the implementation now looks like:
Modifier and Type | Field and Description |
---|---|
static Result[] |
EMPTY_RESULT_ARRAY |
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.
|
static final Result[] EMPTY_RESULT_ARRAY
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
void clear()
int numberOfCompleteRows()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.